メインコンテンツへスキップ
Academind
すべてのコース

Academind Proのコース

React & TypeScript - The Practical Guide

Build type-safe React apps & use TypeScript to enhance your components, state management, Redux & side effects code.

  • 8セクション · 100件のレクチャー
  • 合計7 時間 21 分

このコースについて

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.

学べること

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.

  1. 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.

  2. 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.

  3. 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 any or brittle workarounds.

  4. 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.

  5. 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.

  6. 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.

前提条件

  • Basic React knowledge is required (components, JSX, state).

  • No prior TypeScript knowledge is required.

このコースの対象者

  • 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.

カリキュラム

始める前に、このコースの構成とペースをご確認ください。

  1. 1Introduction6件のレクチャー · 9 分
    1. 01Welcome To The Course!1:26分
    2. 02Why React & TypeScript?1:56分
    3. 03About The Course & Course Content1:46分
    4. 04How To Get The Most Out Of The Course2:59分
    5. 05Learning Community & Course Resources0:00分
    6. 06Creating & Using React + TypeScript Projects1:00分
  2. 2TypeScript Basics & Core Concepts19件のレクチャー · 1 時間 12 分
    1. 01Module Introduction1:13分
    2. 02TypeScript Setup & Using TypeScript3:01分
    3. 03Working with Types: Type Inference & Explicit Type Annotations7:46分
    4. 04Basic Primitive Types1:08分
    5. 05Invoking The TypeScript Compiler3:13分
    6. 06Combining Types Union Types (Alternative Types)2:21分
    7. 07Working with Object Types5:39分
    8. 08Working with Array Types3:59分
    9. 09Adding Types to Functions - Parameter & Return Value Types5:04分
    10. 10Defining Function Types3:28分
    11. 11Creating Custom Types / Type Aliases3:57分
    12. 12Defining Object Types with Interfaces3:06分
    13. 13Interfaces vs Custom Types4:24分
    14. 14Being Specific With Literal Types4:21分
    15. 15Merging Types3:05分
    16. 16Type Guards & Type Narrowing - A Closer Look0:00分
    17. 17Adding Type Guards3:42分
    18. 18Making Sense Of Generic Types12:20分
    19. 19Summary0:35分
  3. 3Using TypeScript with React - Essentials19件のレクチャー · 1 時間 39 分
    1. 01Module Introduction1:13分
    2. 02Creating a React + TypeScript Project6:31分
    3. 03Understanding the Role of tsconfig.json5:04分
    4. 04Building a First Component & Facing a Missing Type5:47分
    5. 05Defining Component Props Types4:05分
    6. 06Storing Props Types as a Custom Type or Interface2:04分
    7. 07Defining a Type for Props with "children"7:02分
    8. 08Component Props & The Special "key" Prop0:00分
    9. 09Another Way Of Typing Components3:18分
    10. 10Exercise: Creating a Header Component6:11分
    11. 11Using useState() and TypeScript6:39分
    12. 12Working with State & Outputting State-based Values5:49分
    13. 13Another Exercise & Reusing Types Across Files7:31分
    14. 14Passing Functions as Values - In A Type-Safe Way10:07分
    15. 15Handling & Typing Events8:00分
    16. 16Working with Generic Event Types4:24分
    17. 17Using useRef() with TypeScript8:50分
    18. 18Handling User Input In A Type-Safe Way5:08分
    19. 19Summary1:42分
  4. 4Advanced Component Types - Dynamic Components, Polymorphic Components & More18件のレクチャー · 1 時間 44 分
    1. 01Module Introduction1:31分
    2. 02Building a More Dynamic & Flexible Component11:08分
    3. 03Problem: Flexible Components With Required Prop Combinations6:19分
    4. 04Solution: Building Components with Discriminated Unions6:06分
    5. 05Onwards To A New Project1:14分
    6. 06Building a Basic Wrapper Component4:56分
    7. 07Building Better Wrapper Components with ComponentPropsWithoutRef7:25分
    8. 08Building a Wrapper Component That Renders Different Elements7:05分
    9. 09Working with Type Predicates & Facing TypeScript Limitations10:51分
    10. 10Building a Basic Polymorphic Component5:26分
    11. 11Building a Better Polymorphic Component with Generics10:06分
    12. 12Examples: More Component Ideas0:00分
    13. 13Using forwardRef with TypeScript7:32分
    14. 14Building Another Wrapper Component (Custom Form Component)3:45分
    15. 15Sharing Logic with "unknown" & Type Casting10:10分
    16. 16Exposing Component APIs with useImperativeHandle (with TypeScript)9:58分
    17. 17Alternative: Avoiding Type Casting with "as"0:00分
    18. 18Summary0:57分
  5. 5Advanced Type-Safe State with Context API & useReducer()10件のレクチャー · 47 分
    1. 01The Starting Project1:39分
    2. 02Module Introduction0:59分
    3. 03Creating a Context & Fitting Types7:07分
    4. 04Creating a Type-Safe Provider Component4:40分
    5. 05Accessing Context Type-Safe With A Custom Hook6:33分
    6. 06Getting Started with useReducer() & TypeScript3:15分
    7. 07A Basic Reducer Function & A Basic Action Type6:28分
    8. 08Changing State via the Reducer Function2:43分
    9. 09Using Better Action Types5:47分
    10. 10Wiring Everything Up & Finishing the App7:26分
  6. 6Side Effects, useEffect() & Data Fetching with TypeScript12件のレクチャー · 56 分
    1. 01Module Introduction0:46分
    2. 02Creating a First Side Effect4:45分
    3. 03Using useEffect() with TypeScript4:31分
    4. 04A Small Bug & Its Solution0:00分
    5. 05Managing An Interval With Refs & The Effect Cleanup Function8:53分
    6. 06useEffect() & Its Dependencies5:45分
    7. 07Onwards to Data Fetching!2:10分
    8. 08Building a Utility "get" Function with TypeScript7:00分
    9. 09Fetching & Transforming Data13:27分
    10. 10Alternative: Using the "zod" Library for Response Data Validation0:00分
    11. 11Alternative: A Generic "get" Function0:00分
    12. 12Handling Loading & Error States8:14分
  7. 7Using Redux with TypeScript12件のレクチャー · 52 分
    1. 01The Starting Project2:58分
    2. 02Module Introduction1:04分
    3. 03Redux Setup1:18分
    4. 04Creating a Redux Store & A First Slice5:17分
    5. 05Setting a State Type2:40分
    6. 06A First Reducer & Controlling the Action Payload Type3:28分
    7. 07Adding Logic To The Reducer6:17分
    8. 08Providing the Redux Store2:34分
    9. 09Dispatching Actions & Adjusting the useDispatch Hook8:25分
    10. 10Creating a Type-Safe useSelector Hook5:15分
    11. 11Selecting & Transforming Redux Store Data3:36分
    12. 12Finishing Touches & Summary9:00分
  8. 8Practice Project: A "Book a Session" Management Application4件のレクチャー · 2 分
    1. 01Your Task2:03分
    2. 02Your Task - Details0:00分
    3. 03Hints0:00分
    4. 04An Example Solution0:00分

始める準備はできましたか?

このコースをAcademind Proで購入するか、Academind InfiniteのAll Accessですべてのコースを利用しましょう。

ブラックフライデー: All Access 1年分が $249 $249 · までの限定価格セール価格で購入する
  • Academind Proでこのコースを購入

    $89買い切り

    税込 · 30日間返金保証

    • このコースへの無期限アクセス
    • このコースの今後のアップデートすべて
    • ダウンロード資料、コード、修了証
    React & TypeScriptを購入
  • Academind InfiniteのAll Access

    $25/月

    または$249 $249 /年17%お得

    • すべてのコースを、すべての機能付きで
    • 新しいコースも随時追加
    • チューター(すべての機能)
    All Accessを始める

All Accessには、Academind Proのすべてのコースも含まれます。

Academind ProとAcademind Infinite

コースもログインもそれぞれ別の、2つのプラットフォームです。

Academind Pro

pro.academind.comにある、これまでのコースプラットフォームです。Proのサブスクリプションとご購入のコースは、引き続きProでご利用いただけます。

Academind Proにログイン

Academind Infinite

AIファーストの新しいプラットフォームです。ProメンバーはProのアカウントでログインできます。Pro All AccessにはInfiniteも含まれ、すべてのコースを受講できます。

Academind Infiniteにログイン

Proのアカウントをお持ちか、Proでコースをご購入済みですか?

Infiniteに移ったのは、Proのコースの一部だけです。お持ちのコースを選んで、Infiniteでのページを開いてください。