react
Skill16 starsChanged 4 months agoMITView on GitHub
Apply these opinionated React conventions when writing React 18+ or 19 components: hooks patterns, Server Components, Suspense boundaries, state management, performance memoization, React 19 features (use, form actions).
30 other projects use a version of this.
Adopted by
Most recently taken up by
- lobehub/lobehubtheir own version, first seen Oct 1, 2026
- compozy/compozytheir own version, first seen Oct 1, 2026
- vercel-labs/json-rendertheir own version, first seen Sep 23, 2026
- dafaalz/agent-skillstheir own version, first seen Sep 22, 2026
- AvilaCarlosDev/openclaw-skillstheir own version, first seen Sep 19, 2026
- danielteles/awesome-agent-skillstheir own version, first seen Sep 2, 2026
Used with
Projects with it also use app-renderer-systems, refactoring-analysis and 10 more.
Other files people use alongside this one.
Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
pedronauckSkillapp-renderer-systems
Create, extend, or debug frontend domain modules organized under systems/. Covers adapters, Query hooks, local state, and public exports; excludes generic components and backend implementation.
Also in 3 projects that use this
pedronauckSkillrefactoring-analysis
Audit code quality and architectural health or plan refactoring using Fowler code smells and techniques; write prioritized findings to docs/_refacs/. Excludes formatting, performance, and security audits.
Also in 3 projects that use this
rogue-dev-studioSkillnodejs
Node.js development environment. Use when the project needs this capability or the user / team manifest asks for it. Use for specialized `nodejs` work when listed in TEAM.yaml or explicitly requested.
Also in 6 projects that use this
akornmeierSkilltailwindcss
Guide for implementing Tailwind CSS - a utility-first CSS framework for rapid UI development. Use when styling applications with responsive design, dark mode, custom themes, or building design systems with Tailwind's utility classes.
Also in 6 projects that use this
MindrallySkillprisma
Expert in Prisma ORM with type-safe database operations and schema design
Also in 4 projects that use this
joabgonzalezSkillexpress
Express.js routing, middleware, and error handling. Trigger: When building REST APIs or server logic with Express.
Also in 3 projects that use this
- +1 more from pedronauck
Other versions30 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 30
- lobehub/lobehub★ 83ksame name
- vercel-labs/json-render★ 18ksame name
- compozy/compozy★ 2.8ksame name
- openops-cloud/openops★ 1.1ksame name
- pedronauck/skills★ 633same name
- Mindrally/skills★ 266same name
- magnus919/agent-skills★ 109same name
- dylantarre/design-system-skills★ 50same name
- nimadorostkar/Claude-Skills-collection★ 28same name
- sordi-ai/skill-everything★ 20same name
20 more not listed
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository15 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- csharpSkill
- documentationSkill
- dotnet-coreSkill
- humanize-textSkill
- javascriptSkill
- jira-report-commentSkill
- legacy-modernizationSkill
- nestjsSkill
- nextjsSkill
- pythonSkill
- simple-englishSkill
- spec-miningSkill
- testingSkill
- typescriptSkill
The file
We split this skill into the rules it gives an agent
1 rule. 0 are common, 0 are distinctive, and 1 is very specific to this project.
0
Common
Most of the 23 edited versions we read keep these.
0
Distinctive
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 22
useTransitionwhen a keystroke triggers expensive work: Update the input urgently and mark the derived work as a transition, so React can …
“Common” is measured: kept by at least 6 in 10 of the 23 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
React
House conventions for React 18/19. Apply them to components you are writing or changing — don't refactor untouched files to match unless asked.
Conventions
- Server Component by default;
'use client'only where you need it — state, effects, event handlers, browser APIs. Push the boundary as far down the tree as it will go: every component above a'use client'marker also ships to the browser. Everything crossing that boundary must be serializable — a function, a class instance, or aDateinside a prop object fails at runtime, not at build. - Read state through the functional updater inside anything that outlives the render — intervals, subscriptions, debounced callbacks.
setCount(count + 1)inside auseEffect(…, [])capturescountfrom the first render forever and silently sets1every tick;setCount(c => c + 1)always sees current state. - Effects are for synchronising with something outside React — a subscription, a timer, a non-React widget. Data transformation belongs in render, derived values in a plain variable, and event responses in the handler. Most
useEffectbugs are an effect that should never have existed. - Every effect that starts something returns a cleanup that stops it. Strict mode double-invokes effects in development precisely to make a missing cleanup visible — treat that as the signal it is, not noise.
- Keys must be stable identity, not position. An array index as key makes React reuse the wrong DOM node when the list reorders, and the symptom shows up as state attached to the wrong row.
- Memoise for a measured reason.
memo,useMemo, anduseCallbackeach cost a comparison and add code to read. They earn their place when a child is genuinely expensive or is itself memoised and a new reference would defeat it — not as a default wrapper. - State lives at its natural level.
useStatelocally, lifted only as far as the shared ancestor. Reach for Zustand when genuinely global client state exists; TanStack Query for server state, because cache invalidation and refetching are its job and hand-rolling them in effects goes wrong quietly. - Error boundaries around anything that can fail independently — a route, a widget, a third-party embed. Without one, a render error unmounts the whole tree and the user gets a blank page.
- Suspense boundaries where you want a fallback, placed so the loading UI matches the layout that will replace it. A boundary at the root turns any pending fetch into a full-page spinner.
- React 19:
useActionStateand<form action>for mutations,useOptimisticfor immediate feedback,use()to read a promise or context conditionally.refis a normal prop —forwardRefis no longer needed.useFormStatusonly reports on a form above it, so the submit button reading pending state has to be its own component nested inside the<form>— calling it in the component that renders the form always returnspending: false. useTransitionwhen a keystroke triggers expensive work. Update the input urgently and mark the derived work as a transition, so React can interrupt it; without this, typing into a field that filters a large list feels broken even though nothing is.- Semantic HTML first, ARIA only to fill the gap. A
<button>brings focus handling, keyboard activation, and role for free; a<div role="button">means reimplementing all three correctly. - Query tests by role and label, not test IDs.
getByRole('button', { name: /submit/i })fails when the control stops being reachable the way a user reaches it — which is the bug you want the test to catch.getByTestIdpasses regardless and is the fallback for elements with no accessible name.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

