Skip to content
All paths
Beginner → IntermediateFrontend

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.

  1. 1

    HTML & CSS foundations

    The structure and styling every framework compiles down to.

    21h5 topics
    Not started
    Show topics
    • Mark 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
  2. 2

    Modern JavaScript

    The language of the browser, without the old quirks.

    20h4 topics
    Not started
    Show topics
    • Write 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
  3. 3

    TypeScript

    Catch bugs before the browser does.

    9h 30m3 topics
    Not started
    Show topics
    • Type 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 ↗
  4. 4

    React

    Think in components and state.

    27h7 topics
    Not started
    Show topics
  5. 5

    Next.js App Router

    Full-stack React with routing, rendering and data built in.

    27h7 topics
    Not started
    Show topics
    • Build 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
  6. 6

    Styling at scale

    Consistent UI without a pile of one-off CSS.

    7h 30m3 topics
    Not started
    Show topics
    • Style 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
  7. 7

    Testing

    Ship changes without clicking through every page.

    11h3 topics
    Not started
    Show topics
  8. 8

    Performance & deployment

    Fast for users, boring to release.

    6h2 topics
    Not started
    Show topics
  9. 9

    Capstone project

    A real app you can link on your resume.

    18h2 topics
    Not started
    Show topics