Frontend with React & Next.js
Build a solid base in HTML, CSS and JavaScript, add TypeScript, then learn React and the Next.js App Router to build fast, accessible apps. Finish by testing with Vitest and Playwright and deploying to production.
What you will be able to do
- Build accessible, responsive layouts with semantic HTML, Flexbox and Grid
- Write modern JavaScript and TypeScript, including async code and modules
- Build React components with state, effects, forms and custom hooks
- Ship Next.js App Router apps with server components, data fetching and server actions
- Test with Vitest, Testing Library and Playwright, then deploy with good Core Web Vitals
Roadmap
Bar length shows each module's share of study time.
- 121h5 topics
HTML & CSS foundations
The structure and styling every framework compiles down to.
Show topicsNot startedMark up a page with the right landmarks, headings and accessible forms.
- Use landmarks like header, main, nav
- Structure content with correct headings
- Build forms with labels and fieldsets
- Use native inputs and validation attributes
Predict which rule wins and size elements without fighting the box model.
- Write type, class and attribute selectors
- Predict specificity and cascade order
- Apply box-sizing: border-box
- Choose between px, rem, em and %
- Debug styles in DevTools
Build common layouts (nav bars, cards, dashboards) with Flexbox and Grid.
- Build a nav bar with Flexbox
- Align and distribute items with Flexbox
- Lay out a card grid with Grid
- Use grid-template-areas for page layouts
- Build a dashboard layout
- Choose Flexbox or Grid per layout
Make a layout work from phone to desktop with a mobile-first approach.
- Add the viewport meta tag
- Write mobile-first media queries
- Use fluid widths and clamp()
- Test layouts at several widths
Audit a page for keyboard, contrast and screen-reader problems and fix them.
- Navigate a page using only the keyboard
- Check color contrast ratios
- Add alt text and ARIA labels
- Run an axe or Lighthouse audit
- Fix the issues the audit finds
- 220h4 topics
Modern JavaScript
The language of the browser, without the old quirks.
Show topicsNot startedWrite JavaScript with const/let, arrow functions, destructuring and array methods.
- Declare variables with const and let
- Write arrow and regular functions
- Destructure objects and arrays
- Use spread and rest syntax
- Transform data with map, filter, reduce
- Understand closures and this
Build an interactive widget with vanilla JS and event listeners.
- Select and create DOM elements
- Handle events with addEventListener
- Use event delegation
- Build an interactive widget in vanilla JS
Load data from an API with fetch and handle loading and error states.
- Understand the event loop
- Chain promises with then/catch
- Rewrite promise code with async/await
- Fetch JSON from an API
- Show loading and error states
Set up a project with npm, ES modules and a dev server.
- Initialise a project with npm
- Use import and export modules
- Install and use packages
- Run a Vite dev server
- 39h 30m3 topics
TypeScript
Catch bugs before the browser does.
Show topicsNot startedType functions, objects and API responses without overusing any.
- Annotate primitives, arrays and objects
- Define interfaces and type aliases
- Rely on type inference sensibly
- Type API responses without any
Model states with discriminated unions and write reusable generic helpers.
- Write union and literal types
- Narrow types with typeof and in
- Model state with discriminated unions
- Write generic functions and types
- Use built-in utility types
Configure a strict TypeScript project and fix the errors it reveals.
- Read the key tsconfig options
- Enable strict mode
- Fix the errors strict mode reveals
Module resources:TypeScript Handbook ↗ - 427h7 topics
React
Think in components and state.
Show topicsNot startedBreak a UI mockup into a tree of reusable components.
- Write function components with JSX
- Pass data with props
- Render children and compose components
- Break a mockup into a component tree
Add interactivity with useState and decide where each piece of state lives.
- Add state with useState
- Handle click and input events
- Render conditionally
- Lift state up to a shared parent
- Avoid redundant or duplicated state
Render lists correctly and build controlled forms with validation.
- Render lists with map
- Choose stable keys
- Build controlled inputs
- Validate a form and show errors
Sync with external systems using useEffect and remove unnecessary effects.
- Sync with an external system using useEffect
- Write cleanup functions
- Store mutable values and DOM nodes with useRef
- Remove effects you do not need
Share state across a tree with context and useReducer without prop drilling.
- Create and provide a context
- Consume context with useContext
- Manage complex state with useReducer
- Combine context and reducer for app state
Extract reusable logic into custom hooks.
- Spot repeated logic across components
- Extract a custom hook
- Compose hooks together
Explain when components re-render and fix slow renders with the Profiler.
- Explain when components re-render
- Profile renders with React DevTools
- Apply memo, useMemo and useCallback carefully
- 527h7 topics
Next.js App Router
Full-stack React with routing, rendering and data built in.
Show topicsNot startedBuild nested layouts, dynamic routes, loading and error states.
- Create routes with the app directory
- Add nested layouts
- Build dynamic route segments
- Add loading.tsx and error.tsx
- Navigate with Link and useRouter
Decide what runs on the server and keep client bundles small.
- Explain server vs client components
- Add 'use client' only where needed
- Pass server data to client components
- Check client bundle size
Fetch data in server components and choose static, dynamic or revalidated rendering.
- Fetch data in server components
- Choose static or dynamic rendering
- Revalidate by time or on demand
- Stream with Suspense boundaries
- Understand the Next.js caching layers
Handle form submissions and mutations with server actions and validation.
- Write a server action
- Submit a form to a server action
- Validate input with Zod
- Show pending and error states
- Revalidate data after a mutation
Build JSON endpoints and protect routes with middleware.
- Create a GET and POST route handler
- Return JSON with proper status codes
- Write middleware to protect routes
Add SEO metadata and optimise images and fonts with the built-in components.
- Add static and dynamic metadata
- Optimise images with next/image
- Load fonts with next/font
Add sign-in and persist user data to a hosted database.
- Choose an auth library and provider
- Add sign-in and sign-out
- Connect to a hosted database
- Persist user data per account
- Protect pages and actions by user
- 67h 30m3 topics
Styling at scale
Consistent UI without a pile of one-off CSS.
Show topicsNot startedStyle components with utility classes and a shared theme.
- Set up Tailwind in Next.js
- Style components with utility classes
- Build responsive variants
- Extend the theme with custom tokens
Build a small set of reusable, accessible UI primitives with consistent tokens.
- Define design tokens for color and spacing
- Build Button, Input and Card primitives
- Make primitives keyboard accessible
- Document component variants
Support light and dark themes with CSS variables.
- Define theme colors as CSS variables
- Respect prefers-color-scheme
- Add a persisted theme toggle
- 711h3 topics
Testing
Ship changes without clicking through every page.
Show topicsNot startedTest utilities and hooks with fast unit tests.
- Set up Vitest
- Test pure utility functions
- Test custom hooks
- Mock modules and timers
Test components the way users interact with them.
- Render components in tests
- Query elements by role and label
- Simulate typing and clicks with user-event
- Assert on visible output, not internals
Write E2E tests for key user flows and run them in CI.
- Install Playwright and record a test
- Test sign-in and a key user flow
- Use locators and auto-waiting
- Run Playwright in CI
- 86h2 topics
Performance & deployment
Fast for users, boring to release.
Show topicsNot startedMeasure LCP, INP and CLS and fix the biggest regressions.
- Explain LCP, INP and CLS
- Run a Lighthouse audit
- Fix the largest LCP issue
- Remove layout shifts
Deploy on every push with preview URLs, environment variables and checks.
- Connect the repo to Vercel
- Set environment variables per environment
- Use preview deployments for pull requests
- Run lint, type check and tests in CI
- 918h2 topics
Capstone project
A real app you can link on your resume.
Show topicsNot startedWireframes, a route map and a typed data model ready to build from.
- Sketch wireframes for each page
- Write a route map
- Define the typed data model
- Plan the component tree
A deployed, typed, tested app with auth, a database, server actions and a strong Lighthouse score.
- Scaffold the app with TypeScript and Tailwind
- Build pages, layouts and components
- Add auth and database persistence
- Implement mutations with server actions
- Write unit and E2E tests
- Deploy and reach a strong Lighthouse score