Comprehensive Next.js, React, Redux, and TypeScript development guidelines covering SOLID principles, component architecture, and best practices.
Complete development guidelines for building maintainable, scalable applications with Next.js, React, Redux Toolkit, and TypeScript.
=== over ==| Convention | Usage |
|---|---|
| PascalCase | Components, type definitions, interfaces |
| kebab-case | Directory and file names (e.g., user-profile.tsx) |
| camelCase | Variables, functions, methods, hooks, properties, props |
| UPPERCASE | Environment variables, constants, global configurations |
handle (e.g., handleClick)isLoading, hasError, canSubmit)use (e.g., useAuth, useForm)function keywordReact.memo() strategicallyuseEffect hooksuseCallback for memoizing functionsuseMemo for expensive computationskey props in lists (never use index)Image, Link, Script, Headuse client only when necessary:
Partial, Pick, Omit)interface over type for objectsuseState for component-level stateuseReducer for complex stateuseContext for shared statecreateSlice for combined state/reducers/actionsscreen in RTL)