Production build
bash
npm run buildFor Vite apps, output is generated in dist/.
Deployment targets
- Vercel
- Netlify
- AWS S3 + CloudFront
- Docker + Nginx
SPA routing fallback
Configure server rewrites so unknown routes return index.html.
Environment configuration
- Keep secrets outside frontend bundles
- Use environment variables for API base URLs
- Separate development and production configs
CI/CD checklist
| Task | Action |
|---|---|
| Lint | npm run lint |
| Tests | npm run test |
| Build | npm run build |
| Security | dependency and audit checks |
| Deploy | platform-specific release step |
| Monitor | error tracking and performance metrics |
Final summary
You now have a complete React learning path covering setup, core concepts, hooks, routing, forms, state management, testing, performance, accessibility, and deployment.
Keep practicing by building projects such as:
- Task manager with authentication
- E-commerce frontend with cart and checkout flow
- Admin dashboard with role-based access and analytics