react-structure

Installation
SKILL.md

React Structure

When working with React code in this project, always follow these conventions. The goal is to keep UI rendering cleanly separated from logic, making components easier to test, review, and maintain.

Component file structure

Every component lives in its own folder with this layout:

ComponentName/
├── ComponentName.tsx      # UI only — JSX rendering, no business logic
├── useComponentName.ts    # Hook — state, handlers, side effects, data fetching
├── type.ts                # TypeScript types and interfaces for this component
└── componentSlice.ts      # Redux slice (only if this component owns Redux state)

What goes where

Installs
26
First Seen
Aug 29, 2026
react-structure — thodsaphonsonthiphin/workflow-daily-work