Academind-Pro-Kurs
React & TypeScript - The Practical Guide
Build type-safe React apps & use TypeScript to enhance your components, state management, Redux & side effects code.
- 8 Abschnitte · 100 Lektionen
- 7 Std., 21 Min. insgesamt
Über diesen Kurs
You already know React, but the moment your components get more dynamic, things start to feel fragile. Props become guesswork, state updates get harder to reason about, and you only discover “that one bug” when you run the app.
This course shows you how to bring TypeScript into your React workflow in a way that actually helps—especially where React gets tricky: components, state, events, side effects, and more. You’ll start with a structured TypeScript introduction, then apply the concepts directly to real React patterns so the types make your code clearer instead of slowing you down.
By the end, you’ll be able to build React apps with TypeScript confidently, define the right types for complex UI, and keep your codebase type-safe as it grows. You’ll know how to make advanced components flexible without losing safety, and you’ll be ready to use TypeScript in your own future React projects to reduce errors while you code.
Was du lernst
You’ll connect TypeScript’s core concepts to the exact React patterns that tend to break down when apps become more dynamic and state-heavy.
- 01
TypeScript foundations
Use key TypeScript concepts confidently, even if you’re starting from zero. You’ll be able to model data and intent with types so errors show up while you write code—not later during testing.
- 02
Type-safe React components
Build React components with correctly typed props and internal logic. You’ll be able to keep components flexible while still getting reliable autocomplete and compile-time checks.
- 03
Dynamic component patterns
Create dynamic and even polymorphic components in a type-safe way. You’ll be able to define types that scale with complexity instead of turning into
anyor brittle workarounds. - 04
Typed state and events
Manage state and events with React + TypeScript without fighting the type system. You’ll be able to type common event handlers and state updates so refactors don’t silently break behavior.
- 05
Context and reducer typing
Use TypeScript with React’s Context API and strengthen
useReducer()code with well-defined action and state types. You’ll be able to keep shared state predictable across your component tree. - 06
Effects, fetching, Redux
Type data fetching and
useEffect()flows, and use Redux in a type-safe way for global state. You’ll be able to keep async data and store updates consistent across the app.
Voraussetzungen
Basic React knowledge is required (components, JSX, state).
No prior TypeScript knowledge is required.
Für wen dieser Kurs ist
React developers
You’re building React apps and want fewer runtime surprises as your codebase grows. This course is the next step if you want stronger guarantees without giving up flexibility.
Quality-focused teams
You’re maintaining or contributing to a React codebase where regressions are costly. You want a practical way to make changes safer and catch type-related issues while coding.
TypeScript developers
You already know TypeScript and want to apply it effectively in real React apps. You’re looking for the React-specific patterns where typing matters most—and where it’s easy to get wrong.
Lehrplan
Sieh dir Aufbau und Tempo dieses Kurses an, bevor du startest.
1Introduction6 Lektionen · 9 Min.
- 01Welcome To The Course!1:26 Min.
- 02Why React & TypeScript?1:56 Min.
- 03About The Course & Course Content1:46 Min.
- 04How To Get The Most Out Of The Course2:59 Min.
- 05Learning Community & Course Resources0:00 Min.
- 06Creating & Using React + TypeScript Projects1:00 Min.
2TypeScript Basics & Core Concepts19 Lektionen · 1 Std., 12 Min.
- 01Module Introduction1:13 Min.
- 02TypeScript Setup & Using TypeScript3:01 Min.
- 03Working with Types: Type Inference & Explicit Type Annotations7:46 Min.
- 04Basic Primitive Types1:08 Min.
- 05Invoking The TypeScript Compiler3:13 Min.
- 06Combining Types Union Types (Alternative Types)2:21 Min.
- 07Working with Object Types5:39 Min.
- 08Working with Array Types3:59 Min.
- 09Adding Types to Functions - Parameter & Return Value Types5:04 Min.
- 10Defining Function Types3:28 Min.
- 11Creating Custom Types / Type Aliases3:57 Min.
- 12Defining Object Types with Interfaces3:06 Min.
- 13Interfaces vs Custom Types4:24 Min.
- 14Being Specific With Literal Types4:21 Min.
- 15Merging Types3:05 Min.
- 16Type Guards & Type Narrowing - A Closer Look0:00 Min.
- 17Adding Type Guards3:42 Min.
- 18Making Sense Of Generic Types12:20 Min.
- 19Summary0:35 Min.
3Using TypeScript with React - Essentials19 Lektionen · 1 Std., 39 Min.
- 01Module Introduction1:13 Min.
- 02Creating a React + TypeScript Project6:31 Min.
- 03Understanding the Role of tsconfig.json5:04 Min.
- 04Building a First Component & Facing a Missing Type5:47 Min.
- 05Defining Component Props Types4:05 Min.
- 06Storing Props Types as a Custom Type or Interface2:04 Min.
- 07Defining a Type for Props with "children"7:02 Min.
- 08Component Props & The Special "key" Prop0:00 Min.
- 09Another Way Of Typing Components3:18 Min.
- 10Exercise: Creating a Header Component6:11 Min.
- 11Using useState() and TypeScript6:39 Min.
- 12Working with State & Outputting State-based Values5:49 Min.
- 13Another Exercise & Reusing Types Across Files7:31 Min.
- 14Passing Functions as Values - In A Type-Safe Way10:07 Min.
- 15Handling & Typing Events8:00 Min.
- 16Working with Generic Event Types4:24 Min.
- 17Using useRef() with TypeScript8:50 Min.
- 18Handling User Input In A Type-Safe Way5:08 Min.
- 19Summary1:42 Min.
4Advanced Component Types - Dynamic Components, Polymorphic Components & More18 Lektionen · 1 Std., 44 Min.
- 01Module Introduction1:31 Min.
- 02Building a More Dynamic & Flexible Component11:08 Min.
- 03Problem: Flexible Components With Required Prop Combinations6:19 Min.
- 04Solution: Building Components with Discriminated Unions6:06 Min.
- 05Onwards To A New Project1:14 Min.
- 06Building a Basic Wrapper Component4:56 Min.
- 07Building Better Wrapper Components with ComponentPropsWithoutRef7:25 Min.
- 08Building a Wrapper Component That Renders Different Elements7:05 Min.
- 09Working with Type Predicates & Facing TypeScript Limitations10:51 Min.
- 10Building a Basic Polymorphic Component5:26 Min.
- 11Building a Better Polymorphic Component with Generics10:06 Min.
- 12Examples: More Component Ideas0:00 Min.
- 13Using forwardRef with TypeScript7:32 Min.
- 14Building Another Wrapper Component (Custom Form Component)3:45 Min.
- 15Sharing Logic with "unknown" & Type Casting10:10 Min.
- 16Exposing Component APIs with useImperativeHandle (with TypeScript)9:58 Min.
- 17Alternative: Avoiding Type Casting with "as"0:00 Min.
- 18Summary0:57 Min.
5Advanced Type-Safe State with Context API & useReducer()10 Lektionen · 47 Min.
- 01The Starting Project1:39 Min.
- 02Module Introduction0:59 Min.
- 03Creating a Context & Fitting Types7:07 Min.
- 04Creating a Type-Safe Provider Component4:40 Min.
- 05Accessing Context Type-Safe With A Custom Hook6:33 Min.
- 06Getting Started with useReducer() & TypeScript3:15 Min.
- 07A Basic Reducer Function & A Basic Action Type6:28 Min.
- 08Changing State via the Reducer Function2:43 Min.
- 09Using Better Action Types5:47 Min.
- 10Wiring Everything Up & Finishing the App7:26 Min.
6Side Effects, useEffect() & Data Fetching with TypeScript12 Lektionen · 56 Min.
- 01Module Introduction0:46 Min.
- 02Creating a First Side Effect4:45 Min.
- 03Using useEffect() with TypeScript4:31 Min.
- 04A Small Bug & Its Solution0:00 Min.
- 05Managing An Interval With Refs & The Effect Cleanup Function8:53 Min.
- 06useEffect() & Its Dependencies5:45 Min.
- 07Onwards to Data Fetching!2:10 Min.
- 08Building a Utility "get" Function with TypeScript7:00 Min.
- 09Fetching & Transforming Data13:27 Min.
- 10Alternative: Using the "zod" Library for Response Data Validation0:00 Min.
- 11Alternative: A Generic "get" Function0:00 Min.
- 12Handling Loading & Error States8:14 Min.
7Using Redux with TypeScript12 Lektionen · 52 Min.
- 01The Starting Project2:58 Min.
- 02Module Introduction1:04 Min.
- 03Redux Setup1:18 Min.
- 04Creating a Redux Store & A First Slice5:17 Min.
- 05Setting a State Type2:40 Min.
- 06A First Reducer & Controlling the Action Payload Type3:28 Min.
- 07Adding Logic To The Reducer6:17 Min.
- 08Providing the Redux Store2:34 Min.
- 09Dispatching Actions & Adjusting the useDispatch Hook8:25 Min.
- 10Creating a Type-Safe useSelector Hook5:15 Min.
- 11Selecting & Transforming Redux Store Data3:36 Min.
- 12Finishing Touches & Summary9:00 Min.
8Practice Project: A "Book a Session" Management Application4 Lektionen · 2 Min.
- 01Your Task2:03 Min.
- 02Your Task - Details0:00 Min.
- 03Hints0:00 Min.
- 04An Example Solution0:00 Min.
Bereit loszulegen?
Kaufe diesen Kurs auf Academind Pro oder hol dir mit All Access auf Academind Infinite alle Kurse.
Dieser Kurs auf Academind Pro
89 $einmalig
Inkl. MwSt. · 30 Tage Geld-zurück-Garantie
- Lebenslanger Zugriff auf diesen Kurs
- Alle künftigen Updates dieses Kurses
- Downloads, Code und ein Zertifikat
All Access auf Academind Infinite
25 $im Monat
oder
249 $249 $ im JahrSpare 17 %- Jeder Kurs, mit allen Funktionen
- Neue Kurse, sobald sie kommen
- Dein Tutor, mit allen Funktionen
All Access enthält außerdem jeden Academind Pro-Kurs.