What problem does it solve?
This set of conventions guides developers to write React code that is friendly to the React Compiler, removing the need for manual memoization and enforcing functional components with hooks patterns so performance and maintainability scale with the project.
Core Features & Use Cases
- Compiler-ready code: Avoid manual memoization (useMemo, useCallback, memo) and rely on the compiler for optimization.
- Functional components & hooks: Only functional components with hook-based state and effects.
- Styling & patterns: Tailwind CSS integration and consistent styling approaches.
- Component organization & typing: One main export per file, colocated tests, and strong TypeScript prop typings.
- Hook patterns: Correct dependency arrays, avoidance of stale closures, and clear side-effect intent comments.
- State & patterns references: Guidance on Zustand patterns, store composition, and common patterns with available references.
Quick Start
Refactor components to be compiler-ready and hook-based, and remove manual memoization to align with the React Compiler guidance.