As a React app grows, so does the difficulty of tracking how components communicate and how state flows across the whole application. This series works through Flux, the pattern designed to answer exactly that, using ES6 alongside Babel and Webpack.
Core Flux concepts
- Actions: plain JavaScript objects describing a state change
- The dispatcher, which routes actions to the right stores
- Stores, which hold state and logic and notify views when something changes
- Views: the React components that read from stores and render the UI
Setting up and building with Flux
After configuring Babel and Webpack, you'll define actions and dispatchers, build stores that respond to those actions, and connect React components so they update automatically as the underlying data changes, ending with a working grasp of Flux's unidirectional data flow.