React is the most widely used library for building user interfaces, and TypeScript has become the default way to write it on professional teams. This course teaches both together, so you learn to think in components and types from the start rather than bolting types on later.

What you'll learn

  • Setting up a React + TypeScript project with Vite, ESLint and strict compiler settings
  • TypeScript essentials for UI work: unions, generics, utility types and narrowing
  • Components, props and children, typed properly
  • State with useState and useReducer, and how to decide where state should live
  • Effects with useEffect – and the many cases where you don't need one
  • Forms with React 19 Actions, useActionState and useOptimistic
  • Fetching and caching server data, handling loading and error states
  • Context, custom hooks and composition patterns
  • Accessibility basics: semantic HTML, focus management and labels
  • Testing components with Vitest and React Testing Library

Who it's for

  • JavaScript developers ready to build their first serious single-page app
  • React developers who have avoided TypeScript and want to adopt it properly
  • Back-end developers who need to own the front end of their projects

Prerequisites

  • Solid modern JavaScript: modules, arrow functions, destructuring, promises (see Modern JavaScript Essentials)
  • Basic HTML and CSS
  • Node.js installed

Outcomes

By the end of this course you will be able to:

  1. Build a multi-page React app with routing, forms and API data, fully typed.
  2. Choose sensible state boundaries so components stay simple.
  3. Read TypeScript errors and fix the cause instead of silencing them with any.
  4. Write tests that check behaviour the way a user experiences it.

Course outline

ModuleTopic
1Project setup: Vite, TypeScript strict mode, ESLint
2TypeScript for React developers
3Components, JSX and typed props
4State, events and lifting state up
5Lists, keys and conditional rendering
6Effects, refs and synchronising with the outside world
7Forms: controlled inputs, Actions and validation
8Data fetching, caching and error boundaries
9Context, custom hooks and reusable components
10Routing and code splitting
11Testing with Vitest and React Testing Library
12Performance, accessibility and production builds

FAQ

Do I need to learn class components?

No. Modern React is written with function components and hooks. We mention class components only so you can recognise them in older codebases.

Does the course cover Next.js?

This course focuses on React itself. Once you are comfortable here, Next.js App Router in Practice adds server rendering, routing and deployment.

Is TypeScript hard to learn alongside React?

You only need a small part of TypeScript for most UI work, and we introduce it gradually. The compiler's feedback actually makes React easier to learn.

How do I join?

Get in touch and we'll share the current format, schedule and enrolment details.