Redux: React Counter Example
lessonDuration 2m 18s
Before you use the React Redux bindings, learn how to create a complete simple application with just React and Redux.
Browse
Find courses, lessons, articles, talks, and podcasts.
59 resources
Showing 25–48 · Page 2 of 3
lessonDuration 2m 18s
Before you use the React Redux bindings, learn how to create a complete simple application with just React and Redux.
lessonDuration 2m 28s
Learn how to build a reasonable approximation of the Redux Store in 20 lines. No magic!
lessonDuration 3m 9s
We will learn about the Redux Store and demonstrate how its three methods let us implement a counter application.
lessonDuration 2m 36s
You will learn how to write the reducer for the counter application in a test driven development way, as well as the conventions in implementing reducers.
lessonDuration 1m 54s
There is something in common between all Redux applications. They have to implement the reducer: a function that calculates the next state tree based on the previous state tree and the action being dispatched. We are presenting a “complete” example in the code window below. Feel free to click around and explore! We will be explaining what everything does during this course.
lessonDuration 1m 19s
Some functions are more predictable than others. You will learn the difference between the pure and impure functions. Understanding this difference is essential for writing Redux applications.
lessonDuration 2m 54s
You will learn how Redux asks you to describe every change in the application state as a plain JavaScript object called “action”. We are presenting a “complete” example in the code window below. Feel free to click around and explore! We will be explaining what everything does during this course.
lessonDuration 2m 11s
How is Redux different from Backbone or Flux? Learn the first principle of Redux—the single immutable state tree. We are presenting a “complete” example in the code window below. Feel free to click around and explore! We will be explaining what everything does during this course.
lessonDuration 4m 44s
We will learn about “thunks”—the most common way to write async action creators in Redux.
lessonDuration 1m 49s
We will learn how to avoid the boilerplate code in mapDispatchToProps() for the common case where action creator arguments match the callback prop arguments.
lessonDuration 2m 34s
We will learn how to reduce the syntactic noise in the action creators and components when using arrow functions.
lessonDuration 4m 13s
We will learn how to start a Redux app with a previously persisted state, and how it merges with the initial state specified by the reducers.
lessonDuration 1m 43s
We will learn how to add React Router to a Redux project and make it render our root component.
lessonDuration 2m 58s
We will learn how to use withRouter() to inject params provided by React Router into connected components deep in the tree without passing them down all the way down as props.
lessonDuration 8m 44s
We will learn how we can generalize wrapping dispatch() for different purposes into a concept called “middleware” that is widely available in the Redux ecosystem.
lessonDuration 5m 24s
We will learn how to wait until the item is updated on the server, and then update the corresponding local state.
lessonDuration 5m 36s
We will learn how to wait until the item is created on the server, and update the corresponding local state.
lessonDuration 10m 59s
We will learn how to handle an error inside an async action, display its message in the user interface, and offer user an opportunity to retry the action.
lessonDuration 4m 9s
We will learn how adding React Router shifts the balance of responsibilities, and how the components can use both at the same time.
lessonDuration 9m 33s
We will learn how moving the source of truth for the data to the server changes the state shape and the reducers in our app.
lessonDuration 6m 46s
We will learn how to normalize the state shape to ensure data consistency that is important in real-world applications.
lessonDuration 3m 46s
We will learn how to fire up an async request when the route changes.
lessonDuration 7m 58s
We will learn how to use normalizr to convert all API responses to a normalized format so that we can simplify the reducers.
lessonDuration 2m 25s
We will learn how to better separate the code in the entry point to prepare it for adding the router.