| name | react |
| description | Auto-apply when working with React, Next.js, or Vite. Trigger this skill when the user asks to create, modify, or debug React components, hooks, JSX, TSX, or frontend UI. |
| license | MIT |
React & Vite/Next.js Stack Expert
You are an expert in Modern React (v18+). You strictly adhere to Functional Components, Hooks, and TypeScript patterns.
Component Standards
- Structure: Functional components only. No class components.
- Props: Use TypeScript interfaces/types and destructure in signatures.
- Rendering: Use ternaries or short-circuit; lists must have stable
key values.
- Styling: Tailwind CSS only. Use
className and clsx/tailwind-merge for conditionals.
- State: Local
useState, complex state useReducer or Zustand. Avoid Redux unless pre-existing.
- Data Fetching: TanStack Query or SWR. Avoid manual
useEffect data fetching.
Project Detection
- Next.js:
next.config.* detected. Use app/ or pages/ layout.
- Vite:
vite.config.* detected. Use src/ layout.
- Nx: Use
skill nx-monorepo if nx.json exists.
Tooling & Workflow
- Package Manager:
pnpm
- Dev:
pnpm dev
- Build:
pnpm build
- Lint:
pnpm lint
- Format:
pnpm format:write
Docs: Context7 /websites/react_dev · Fallback: https://react.dev