React Component Design

React Component Design

onfire7777 0fb0b86 741 B Updated

File contents

React Component Design

Purpose: Build compact, accessible React UI aligned with the contract.

  1. Keep state local unless shared behavior needs lifting.
  2. Use semantic controls and labels.
  3. Avoid placeholder/sample data in production UI.
  4. Verify desktop and mobile behavior.

Checklist:

  • Components fit existing app conventions.
  • Loading, empty, error, and offline states are real.
  • Controls update state or call APIs.
  • No horizontal scroll at 360px.

Positive example: selector-driven insights panel using live API data. Negative example: decorative cards with inert buttons.

Failure modes: sample data leakage, inaccessible controls, layout overflow.

onfire7777/five-agent-dev-team/tree/main/packages/agents/skills/frontend/react-component-design commit 0fb0b86f33

Frequently asked questions

npx skillmds@latest add onfire7777/react-component-design