React
39 rules in fabricahq/public-library
Accept ref as a prop in React 19
LOWfabricahq/public-library
Authenticate and authorize inside every Server Action
CRITICALfabricahq/public-library
Avoid copying props to state
HIGHfabricahq/public-library
Avoid loading large barrel files
MEDIUMfabricahq/public-library
Avoid unnecessary Effects
HIGHfabricahq/public-library
Build complex components from composable parts
MEDIUMfabricahq/public-library
Compose independent server data fetches as siblings
HIGHfabricahq/public-library
Create explicit component variants instead of boolean mode props
MEDIUMfabricahq/public-library
Deduplicate per-request server work with cache
MEDIUMfabricahq/public-library
Do not define components inside components
HIGHfabricahq/public-library
Follow the Rules of Hooks
HIGHfabricahq/public-library
Give every interactive element a role and an accessible name
HIGHfabricahq/public-library
Give repeated and persistent surfaces stable test ids
MEDIUMfabricahq/public-library
Hint critical resources with React DOM resource APIs
MEDIUMfabricahq/public-library
Initialize expensive state lazily
LOW-MEDIUMfabricahq/public-library
Keep components and Hooks pure
HIGHfabricahq/public-library
Keep input responsive by marking non-urgent updates
MEDIUMfabricahq/public-library
Keep non-critical scripts off the critical path
MEDIUM-HIGHfabricahq/public-library
Keep request data out of shared module state
HIGHfabricahq/public-library
Keep values that do not affect rendering in refs
MEDIUMfabricahq/public-library
Lift shared component state into a provider behind an interface
MEDIUMfabricahq/public-library
Load heavy optional code on demand
HIGHfabricahq/public-library
Memoize deliberately
MEDIUMfabricahq/public-library
Name Effect and non-trivial Hook callbacks
LOWfabricahq/public-library
Name generic components by capability, not by first caller
MEDIUMfabricahq/public-library
Pass only the data Client Components use
MEDIUMfabricahq/public-library
Read the latest callbacks in Effects without resubscribing
MEDIUMfabricahq/public-library
Render client-only preferences without a flash or hydration error
MEDIUMfabricahq/public-library
Reuse request-independent server data across requests
MEDIUMfabricahq/public-library
Run app-wide initialization once per app load
LOW-MEDIUMfabricahq/public-library
Run post-response work after the response
MEDIUMfabricahq/public-library
Share client data requests through a caching data layer
MEDIUM-HIGHfabricahq/public-library
Skip off-screen rendering work in long lists
MEDIUMfabricahq/public-library
Stream slow data behind Suspense boundaries
MEDIUM-HIGHfabricahq/public-library
Subscribe to and depend on only the values you use
MEDIUMfabricahq/public-library
Suppress only expected hydration mismatches
LOW-MEDIUMfabricahq/public-library
Use a boolean condition for conditional rendering
LOW-MEDIUMfabricahq/public-library
Use Activity to hide UI that should keep its state
MEDIUMfabricahq/public-library
Use functional updates when new state depends on old state
MEDIUMfabricahq/public-library