React & Next.js Roadmap
Components, hooks, routing, data fetching, and deployment — the most in-demand frontend stack, properly explained.
7 stages
7 milestones
1
Stage 1: JavaScript Prerequisites
2–4 weeksReact is built on modern JavaScript. Make sure you're solid on these before starting.
- Arrow functions, destructuring, and spread
- Array methods — map, filter, reduce
- Modules — import and export
- Promises and async/await
- Template literals and optional chaining
Resources
- javascript.infoArticle
2
Stage 2: React Fundamentals
3–4 weeksLearn to build UIs as a tree of reusable components.
- JSX — HTML-in-JavaScript
- Functional components and props
- useState — managing local state
- Lists, keys, and conditional rendering
- Event handling in React
- Lifting state up between components
Resources
- React Official DocsArticle
3
Stage 3: React Hooks in Depth
2–3 weeksHooks are the heart of modern React. Master the essentials.
- useEffect — side effects and cleanup
- useRef — persisting values without re-renders
- useContext — sharing state without prop drilling
- useMemo and useCallback — performance
- Custom hooks — extracting reusable logic
Resources
- React Hooks ReferenceArticle
4
Stage 4: Next.js App Router
3–4 weeksNext.js is the go-to React framework for production apps. Learn its modern App Router.
- File-based routing — pages, layouts, and groups
- Server Components vs Client Components
- Loading and error boundary files
- Dynamic routes and generateStaticParams
- Parallel and intercepted routes
- Metadata API for SEO
Resources
- Next.js Docs — App RouterArticle
5
Stage 5: Data Fetching & State
2–3 weeksMost apps fetch data. Learn the right patterns for server and client-side fetching.
- Fetching in Server Components — async/await
- Server Actions — mutations without API routes
- React Query / SWR for client-side data
- Optimistic updates and loading states
- Zustand or Jotai for global client state
- Caching and revalidation with Next.js
Resources
- TanStack Query DocsArticle
6
Stage 6: Authentication
1–2 weeksEvery real app needs auth. Learn to protect routes and manage sessions.
- Auth.js (NextAuth) setup with providers
- JWT vs session-based authentication
- Protecting routes with middleware
- Role-based access control
- Storing users in a database
Resources
- Auth.js DocsArticle
7
Stage 7: Testing & Deployment
1–2 weeksShip confidently with tests and automated deployments.
- Vitest for unit and integration tests
- React Testing Library — testing components
- Playwright for end-to-end tests
- Deploying to Vercel
- Preview deployments and branch-based CI
Resources
- Vercel DocsArticle