Abdul Alimweb · app · ai
All roadmaps

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 weeks

React 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
2

Stage 2: React Fundamentals

3–4 weeks

Learn 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
3

Stage 3: React Hooks in Depth

2–3 weeks

Hooks 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
4

Stage 4: Next.js App Router

3–4 weeks

Next.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
5

Stage 5: Data Fetching & State

2–3 weeks

Most 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
6

Stage 6: Authentication

1–2 weeks

Every 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
7

Stage 7: Testing & Deployment

1–2 weeks

Ship 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
WhatsAppMessenger