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
useStateanduseReducer, 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,
useActionStateanduseOptimistic - 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:
- Build a multi-page React app with routing, forms and API data, fully typed.
- Choose sensible state boundaries so components stay simple.
- Read TypeScript errors and fix the cause instead of silencing them with
any. - Write tests that check behaviour the way a user experiences it.
Course outline
| Module | Topic |
|---|---|
| 1 | Project setup: Vite, TypeScript strict mode, ESLint |
| 2 | TypeScript for React developers |
| 3 | Components, JSX and typed props |
| 4 | State, events and lifting state up |
| 5 | Lists, keys and conditional rendering |
| 6 | Effects, refs and synchronising with the outside world |
| 7 | Forms: controlled inputs, Actions and validation |
| 8 | Data fetching, caching and error boundaries |
| 9 | Context, custom hooks and reusable components |
| 10 | Routing and code splitting |
| 11 | Testing with Vitest and React Testing Library |
| 12 | Performance, 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.