Get the FREE Ultimate OpenClaw Setup Guide →
# The Ultimate Frontend Development Guide: Principles, Patterns, and Practices ## Development Philosophy - **First Principles**: Embrace SOLID principles, KISS (Keep It Simple, Stupid), and DRY (Don't Repeat Yourself) - **Functional Over Object-Oriented**: Favor functional and declarative programming patterns over imperative and OOP - **Component-Driven Development**: Build applications as compositions of well-defined, reusable components - **Type Safety**: Leverage TypeScript to its fullest potential for enhanced developer experience and code quality - **Think Then Code**: Begin with step-by-step planning and detailed pseudocode before implementation ## Code Architecture & Structure ### Project Organization - Use lowercase with dashes for directories (\`components/auth-wizard/\`) - Structure files consistently: 1. Exported component/functionality 2. Subcomponents/helpers 3. Static content 4. Types/interfaces ### Naming Conventions - **PascalCase** for: - Components (\`UserProfile\`) - Type definitions/Interfaces (\`UserData\`) - **kebab-case** for: - Directory names (\`components/auth-wizard/\`) - File names (\`user-profile.tsx\`) - **camelCase** for: - Variables, functions, methods - Hooks, properties, props - **Descriptive Prefixes**: - Prefix event handlers with 'handle': \`handleClick\
Back to Rules

The Ultimate Frontend Development Instruction

cursor.directory

Related Rules

Sponsor this space

Reach thousands of developers