From the course: Building Modern Projects with React
Unlock the full course today
Join today to access over 22,500 courses taught by industry experts or purchase this course individually.
Redux best practices
From the course: Building Modern Projects with React
Redux best practices
- [Instructor] So in this section, we've seen how Redux works and the basics behind incorporating it into our React applications. Now, what we've done may seem relatively straightforward to you. But in practice, there are many questions that come up when using Redux. And frankly, there are many, for lack of a better word, wrong ways to do things when working with Redux. In this video, we're going to look at a few of what I would consider best practices when working with React and Redux. Things to keep in mind to ensure that your React Redux applications work as expected, and remain maintainable for the foreseeable future. The first of these best practices is when you connect components to the Redux store, your file should export both the unconnected and connected versions of that component. The reason for this is that the connected version of your component is usually what the rest of the application will want to use.…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.
Contents
-
-
-
-
-
Why do you need Redux?4m 11s
-
How does Redux work?4m 35s
-
Adding Redux to a React app3m 24s
-
Creating Redux actions4m 16s
-
Creating reducers6m 23s
-
Connecting components to the store7m 1s
-
Running a React-Redux application4m 32s
-
Persisting the Redux store6m 43s
-
Redux DevTools3m 34s
-
Redux best practices3m 53s
-
Challenge: Adding a Redux flow1m 56s
-
Solution: Adding a Redux flow4m 14s
-
-
-
-
-
-