← ClaudeAtlas

react-components-typescriptlisted

Use when designing or reviewing React components: composition and `children`, prop drilling, boolean-prop sprawl, discriminated props, list `key` bugs and state resets, components defined inside components, error boundaries, `{count && <X/>}` rendering "0", controlled vs uncontrolled inputs, impure render, default vs named exports, or TypeScript with React (`ReactNode`, `React.FC`, event types, typing hooks, `defaultProps`/`propTypes` removed in 19, `JSX` namespace).
Lu1sDV/skillsmd · ★ 2 · Web & Frontend · score 63
Install: claude install-skill Lu1sDV/skillsmd
# React Components and TypeScript Community-backed guidance only (react.dev, React team, library maintainers, respected engineers, company blogs). Baseline: **React 19.3**, React Compiler 1.0, eslint-plugin-react-hooks 7, Next.js 16 App Router, React Router 8, TypeScript 5.x with `@types/react` 19. State a version gate wherever a rule has one. Statements marked "project policy" are not consensus. ## Route by task | Task | Load | |---|---| | Prop drilling, `children`, splitting components, variants/booleans, controlled vs uncontrolled, prop-to-state copies, exports, class components | [Composition and props](references/composition-props.md) | | `key` bugs and state reset, nested component definitions, `&&` rendering, purity, error boundaries | [Identity and rendering](references/identity-rendering.md) | | Typing props/children/events/hooks, `React.FC`, `interface` vs `type`, `any`, React 19 type changes | [TypeScript with React](references/typescript-react.md) | Load only the needed file; each rule there carries its source URL. ## Workflow 1. Read the project's React/TypeScript versions, lint rules and existing conventions (exports, props typing). Follow them unless they cause a bug. 2. Classify the symptom: lost state or remounts (identity/keys), stray `0` or wrong output (conditional rendering), stale props copy (state), an uncaught error (boundaries), an `any` or wrong children type (TypeScript). 3. Fix the cause at the shared definition (hoist the component,