1---2name: react-coding3description: React Coding Skill4---5# React Coding Skill67- Follow existing project patterns, architecture, and conventions.8- Prefer functional components and React hooks.9- Keep components small, focused, and reusable.10- Use TypeScript with explicit, accurate types; avoid `any`.11- Keep UI, state, business logic, and data fetching separated when practical.12- Reuse existing components, hooks, utilities, and libraries before creating new ones.13- Avoid unnecessary re-renders, effects, memoization, and state.14- Prefer derived values over duplicated state.15- Handle loading, error, empty, and edge states explicitly.16- Keep JSX declarative and readable; avoid complex inline logic.17- Use stable keys and avoid array indexes when rendering dynamic lists.18- Preserve accessibility: semantic HTML, labels, keyboard support, and ARIA only when needed.19- Make the smallest necessary changes and avoid unrelated refactoring.20- Before adding a dependency, check whether the project already provides an equivalent solution.21- After changes, verify TypeScript, lint, tests, and build when available.