From the course: Building Modern Projects with React
Unlock this course with a free trial
Join today to access over 24,800 courses taught by industry experts.
Why do we need Redux? - React.js Tutorial
From the course: Building Modern Projects with React
Why do we need Redux?
- [Instructor] All right, so now that we've put together a fairly straightforward React application that's already starting to show signs of needing some of these ecosystem tools in order to help it work a little bit more smoothly and make it more maintainable, let's take a look at the first tool for state management in React applications, which is called Redux. Now, we're going to talk specifically about why we need this tool in this video. So really, the main reason why Redux can be so helpful in React applications is frankly just because state management for our React applications as they get larger and more complex is very difficult, right? Mainly this becomes difficult as we've seen when we need to start sharing data between our components. And usually what this leads to is something known as props drilling, which again, we've already seen. Props drilling basically just refers to when you have multiple components, right? Component A displays component B, displays component C. And…
Contents
-
-
-
-
-
-
-
-
(Locked)
Why do we need Redux?2m 33s
-
(Locked)
How does Redux work?4m 35s
-
(Locked)
Adding Redux to a React app4m 57s
-
(Locked)
Creating Redux actions4m 17s
-
(Locked)
Creating reducers4m 27s
-
(Locked)
Loading data from the store5m 7s
-
(Locked)
Dispatching Redux actions7m 10s
-
(Locked)
Adding action payloads2m 46s
-
(Locked)
Challenge: Adding a Redux flow1m 1s
-
(Locked)
Solution: Adding a Redux flow2m 56s
-
(Locked)
Redux DevTools4m 35s
-
(Locked)
-
-
-
-
-
-