busirocket-react-components-and-hooks

React Components and Hooks

Safety Notice

This listing is imported from skills.sh public index metadata. Review upstream SKILL.md and repository scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "busirocket-react-components-and-hooks" with this command: npx skills add busirocket/agents-skills/busirocket-agents-skills-busirocket-react-components-and-hooks

React Components and Hooks

Reusable patterns for scalable React codebases.

When to Use

Use this skill when:

  • Writing or refactoring .tsx components

  • Extracting hooks into hooks/<area>/useXxx.ts

  • Removing helpers from components/hooks into utils/

  • Removing inline types into types/

Non-Negotiables (MUST)

  • Exactly one exported component per .tsx file.

  • Exactly one exported hook per hook file (hooks/<area>/useXxx.ts ).

  • No helper functions inside components or hooks; extract helpers to utils/ .

  • No inline types inside components or hooks; import from types/ .

  • Prefer server-side rendering boundaries wisely (avoid 'use client' for large subtrees).

Rules

Component Patterns

  • react-one-component-per-file

  • One component per file (STRICT)

  • react-client-vs-server

  • Client vs Server Components (App Router)

  • react-folder-namespacing

  • Folder namespacing for complex components

  • react-performance

  • Performance optimization (memo, useCallback)

  • react-accessibility

  • Accessibility best practices

Hooks Best Practices

  • react-one-hook-per-file

  • One hook per file (STRICT)

  • react-no-helpers-in-hooks

  • No helpers inside hooks (STRICT)

  • react-no-types-in-hooks

  • No types inside hooks (STRICT)

  • react-stable-api

  • Stable API for hooks

  • react-side-effects

  • Side effects in hooks

Related Skills

  • busirocket-core-conventions

  • General file structure and boundaries

  • busirocket-typescript-react-standards

  • TypeScript and type conventions

  • busirocket-nextjs-route-handlers

  • Server vs Client Components (detailed)

How to Use

Read individual rule files for detailed explanations and code examples:

rules/react-one-component-per-file.md rules/react-one-hook-per-file.md rules/react-client-vs-server.md

Each rule file contains:

  • Brief explanation of why it matters

  • Code examples (correct and incorrect patterns)

  • Additional context and best practices

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

Automation

busirocket-tailwindcss-v4

No summary provided by upstream source.

Repository SourceNeeds Review
Automation

busirocket-core-conventions

No summary provided by upstream source.

Repository SourceNeeds Review
Automation

busirocket-refactor-workflow

No summary provided by upstream source.

Repository SourceNeeds Review
Automation

busirocket-validation

No summary provided by upstream source.

Repository SourceNeeds Review