Reducers

Reducers Actions describe the fact that something happened, but don't specify how the application's state changes in response. This is the job of a reducer. Designing the State Shape In Redux, all application state is stored as a single object. It's a good idea to think of its shape before writing any code. What's the minimal representation of your app's state as an object? For our todo app, we want to store two different things: The currently selected visibility filter; The actual list of tod

Store

Store A store holds the whole state tree of your application. The only way to change the state inside it is to dispatch an action on it. A store is not a class. It's just an object with a few methods on it. To create it, pass your root reducing function to createStore. A Note for Flux Users If you're coming from Flux, there is a single important difference you need to understand. Redux doesn't have a Dispatcher or support many stores. Instead, there is just a single store with a single root re

Redux FAQ: Miscellaneous

Redux FAQ: Miscellaneous Table of Contents Are there any larger, “real” Redux projects? How can I implement authentication in Redux? Miscellaneous Are there any larger, “real” Redux projects? Yes, lots of them! To name just a few: Twitter's mobile site Wordpress's new admin page Firefox's new debugger Mozilla's experimental browser testbed The HyperTerm terminal application And many, many more! The Redux Addons Catalog has a list of Redux-based applications and examples that p