Redux Toolkit + TypeScript Crash Course | Zero To Hero
Описание
Welcome to this beginner-friendly TypeScript Redux-Toolkit tutorial! I'll take you from absolutely no knowledge on redux toolkit to being able to use redux toolkit confidently throughout your app in just over 10 mins. We briefly cover the theory of Redux Toolkit as well as coding a simple user example including creating the Slice, the Actions, exporting a Reducer and configuring the Store - fully typed throughout.
If this helps, please drop a like and comment to let me know if you need me to cover anything else (or if you just wanna say hi!).
The Code: https://nickderaj.com/youtube/redux-toolkit-typescript
Chapters:
00:00 - Introduction
00:32 - Creating a Next 13 App
01:13 - Wrapping our App with Redux Provider
02:54 - Setting up the folder structure for the store
03:14 - Theory of Redux Toolkit
04:36 - TL:DR of Theory
05:11 - Creating our first slice - UserSlice
06:36 - Creating the reducers / actions
07:41 - Creating the "store"
10:39 - Wrapping the app in this store
11:12 - Accessing our state in a Client Component
12:39 - Mutating the state with a Dispatch
15:00 - Adding types to actions and catching Type Errors
16:27 - Outro
Рекомендуемые видео



















