Intermediate

Using TypeScript with React

Add TypeScript to React, convert a JS app and add runtime type safety with Zod.

React is 100% JavaScript, and JavaScript is a dynamically typed language: a variable's type is determined implicitly at assignment. This can lead to unexpected behavior.

TypeScript solves these problems by detecting errors at compile time, before code is even executed. Editors like VS Code leverage these types to provide IntelliSense (auto-completion, real-time error detection).

Sign in to read this course

A free account unlocks all 514 courses. 20 are readable without one.

What's inside

7 sections
  1. 1 Table of Contents
  2. 2 Introduction to TypeScript in a React Application
  3. 3 Converting a JavaScript Application to TypeScript
  4. 4 Runtime Type Safety — Zod and React Server Components
  5. 5 Reference Diagrams
  6. 6 Reference Tables
  7. 7 Summary and Best Practices

Interested in this course?

Contact us to book it or get a custom training plan for your team.