React Ts
No description available
Install / Use
/learn @stephane-segning/React TsREADME
Vite-First Monorepo
Production-grade monorepo with a Vite React app, shared UI library, platform adapters, contracts, docs, Storybook, tests, and SST infra.
Conventions
- Kebab-case for all
.js,.ts, and.tsxfiles. - Components use
export function <ComponentName>()(no separate export list). - Use
cvafor component variants andcnfor class composition. - Prefer small, dumb components; smart components orchestrate data and state.
- Pipeline:
services-> TanStack Query -> smart component -> dumb components (favor optimistic UI). - No DI/IoC on the frontend.
- Avoid
useState; if state is needed, propose alternatives before adding it. - If placement is unclear (ui/component/service/etc.), ask the user.
Docs Workflow
/apps/docsshould be updated by the assistant when code changes land.- Changes are proposed and reviewed with the user before finalizing.
Packages
apps/web: Vite + React appapps/docs: VitePress docspackages/ui: shared UI primitivespackages/platform: platform adapterspackages/contracts: shared Zod schemasinfra: SST stackstests/e2e: Playwright E2E
Quick Start
pnpm install
pnpm dev
Common Commands
pnpm lint
pnpm typecheck
pnpm test
pnpm test:coverage
pnpm build
pnpm docs:dev
pnpm storybook
pnpm e2e
UI Validation
- Storybook is used for quick, local checks of dumb UI components.
