Ideal React Component

React component structure and hooks antipatterns — a seven-section file layout, logic ordering, and the useEffect/useState failure modes behind infinite loops and stale state. Use this skill whenever the user wants to "create a React component", "structure this component", "refactor this component", "extract a custom hook", "fix an infinite render loop", or "my useEffect isn't working" — even if they don't mention React by name, when the file is .tsx/.jsx or the code calls hooks. Do NOT use this skill for general code review of non-React code (see code-review), visual or layout design (see frontend-design), or plain JavaScript with no components or hooks.

antjanus 553d9f7 6 files · 33.2 KB Updated

File contents

antjanus/skillbox/tree/main/skills/ideal-react-component commit 553d9f7092

Frequently asked questions

npx skillmds@latest add antjanus/ideal-react-component