- Use the Airbnb JavaScript style guide.
- Prefer functional components over class components.
- Files: Use kebab-case (e.g.,
task-list.tsx
) - Components: Use PascalCase (e.g.,
TaskList
) - Variables: Use camelCase (e.g.,
taskName
) - Constants: Use UPPER_SNAKE_CASE (e.g.,
API_URL
)
- Write pure functions where possible.
- Keep components small and focused on a single responsibility.
- Use TypeScript for type safety.