React/Next.js Development Workflow
Specialized workflow for building React and Next.js 14+ applications with modern patterns.
When to Use
- Building new React applications
- Creating Next.js 14+ projects with App Router
- Implementing Server Components
- Setting up TypeScript with React
- Styling with Tailwind CSS
- Building full-stack Next.js applications
Workflow Phases
Phase 1: Project Setup
- Choose project type (React SPA, Next.js app)
- Select build tool (Vite, Next.js)
- Scaffold project structure
- Configure TypeScript
- Set up ESLint and Prettier
Phase 2: Component Architecture
- Design component hierarchy
- Create base components
- Implement layout components
- Set up state management (Zustand, React Query)
- Create custom hooks
Phase 3: Styling and Design
- Set up Tailwind CSS v4
- Configure design tokens
- Create utility classes
- Build component styles
- Implement responsive design
Phase 4: Data Fetching
- Implement Server Components
- Set up React Query/SWR
- Create API client
- Handle loading states
- Implement error boundaries
Phase 5: Routing and Navigation
- Set up file-based routing (App Router)
- Create dynamic routes
- Implement nested routes
- Add route guards
- Configure redirects
Phase 6: Forms and Validation
- Choose form library (React Hook Form, Formik)
- Set up validation (Zod, Yup)
- Create form components
- Handle submissions
- Implement error handling
Phase 7: Testing
- Set up testing framework (Vitest)
- Write unit tests
- Create component tests
- Implement E2E tests (Playwright)
- Configure CI integration
Phase 8: Build and Deployment
- Configure build settings
- Optimize bundle size
- Set up environment variables
- Deploy to Vercel
- Configure preview deployments
Technology Stack
| Category | Technology |
|---|
| Framework | Next.js 14+, React 18+ |
| Language | TypeScript 5+ |
| Styling | Tailwind CSS v4 |
| State | Zustand, React Query |
| Forms | React Hook Form, Zod |
| Testing | Vitest, Playwright |
| Deployment | Vercel |
Quality Gates
- TypeScript compiles without errors
- All tests passing
- Linting clean
- Performance metrics met (LCP, CLS, FID)
- Accessibility checked (WCAG 2.1)
- Responsive design verified