TypeScript in React - Full Tutorial

Struggling to type React components correctly? This TypeScript React tutorial walks you through using TypeScript in real React projects, from typing useState to building reusable typed components, with hands-on challenges throughout. ✏️ Study this course interactively on Scrimba: https://scrimba.com/learn-typescript-c03c?via=scrimbafcc Code is available on the Scrimba course page for each lesson. TypeScript makes React code safer and more predictable. In this module, you'll learn how to type useState, component props, JSX elements, and function props through practical lessons. Perfect for developers who know React basics and want to add TypeScript to their workflow. This isn't just a watch-and-learn tutorial. You'll complete real coding challenges, including building the AriaLiveStatus and WordLetters components from scratch. Timestamps - 00:00 Welcome to TypeScript and React! - 01:51 Setting up the React Project - 05:02 TS Refresher - Basic & Custom Types - 08:31 TS Refresher - Functions - 11:50 TS Refresher - A new getRandomIndex() function - 14:07 Typing useState() - 17:36 Typing Derived Values and Arrow Functions - 19:48 Typing App.tsx functions - 23:10 The New Setup

Gratis1 lezione52 minIntermedio

canale freeCodeCamp.org

luglio 2026

Verificato 15 giorni fa

Gratis

Il corso è gratuito ed è pubblicato su YouTube. L'autore resta il canale, noi lo ordiniamo soltanto e controlliamo che i video si aprano.

Inizia il corso

Argomenti correlati

Il corso include

  • 52 min di video
  • 1 lezioni
  • Livello: Intermedio
  • Lingua: English
  • Ricordiamo dove eri arrivato
  • Del tutto gratis, senza carta

Lezioni

1 sezioni · 1 lezione · 52 min durata totale

Lezioni 1–11 lezione · 52 min

Cosa serve

  • Le basi aiutano: il corso riprende dopo di esse.

Descrizione

Struggling to type React components correctly? This TypeScript React tutorial walks you through using TypeScript in real React projects, from typing useState to building reusable typed components, with hands-on challenges throughout. ✏️ Study this course interactively on Scrimba: https://scrimba.com/learn-typescript-c03c?via=scrimbafcc Code is available on the Scrimba course page for each lesson. TypeScript makes React code safer and more predictable. In this module, you'll learn how to type useState, component props, JSX elements, and function props through practical lessons. Perfect for developers who know React basics and want to add TypeScript to their workflow. This isn't just a watch-and-learn tutorial. You'll complete real coding challenges, including building the AriaLiveStatus and WordLetters components from scratch. Timestamps - 00:00 Welcome to TypeScript and React! - 01:51 Setting up the React Project - 05:02 TS Refresher - Basic & Custom Types - 08:31 TS Refresher - Functions - 11:50 TS Refresher - A new getRandomIndex() function - 14:07 Typing useState() - 17:36 Typing Derived Values and Arrow Functions - 19:48 Typing App.tsx functions - 23:10 The New Setup

A chi è rivolto

  • Chi conosce le basi di React.

Questi due punti sono una nostra lettura del livello. La descrizione è dell'autore.

TypeScript in React - Full Tutorial, canale freeCodeCamp.org