STOP Using Redux! Do This Instead

Опубликовано: 14 Сентябрь 2024
на канале: Austin Davis
1,306
39

In this video, I'll explain why you don't always need Redux for state management in React, especially for simpler applications. I'll show you how to use useContext to solve a similar problem Redux does, but with far less complexity and setup. We'll walk through a coding example where I implement useContext in place of Redux, and I'll explain when it's appropriate to use each one. Whether you're a beginner or an experienced React developer, you'll learn when to simplify your state management by choosing the right tool for the job.

Join my brand new Discord server!
  / discord  

React context documentation:
https://react.dev/reference/react/cre...

Timestamps:
0:00 - Intro
0:26 - State Scenario
1:55 - The Simpler Solution!
5:11 - Extensions of context
6:19 - When to use each