Predictable state container for JavaScript apps
npm install @darcusfenix/reduxRedux is a predictable state container for JavaScript apps.
(If you're looking for a WordPress framework, check out Redux Framework.)
It helps you write applications that behave consistently, run in different environments (client, server, and native), and are easy to test. On top of that, it provides a great developer experience, such as live code editing combined with a time traveling debugger.
You can use Redux together with React, or with any other view library.
It is tiny (2kB, including dependencies).






>Learn Redux from its creator:
>Part 1: Getting Started with Redux (30 free videos)
>Part 2: Building React Applications with Idiomatic Redux (27 free videos)
>“Love what you're doing with Redux”
>Jing Chen, creator of Flux
>“I asked for comments on Redux in FB's internal JS discussion group, and it was universally praised. Really awesome work.”
>Bill Fisher, author of Flux documentation
>“It's cool that you are inventing a better Flux by not doing Flux at all.”
>André Staltz, creator of Cycle
>Also read:
>You Might Not Need Redux
I wrote Redux while working on my React Europe talk called “Hot Reloading with Time Travel”. My goal was to create a state management library with minimal API but completely predictable behavior, so it is possible to implement logging, hot reloading, time travel, universal apps, record and replay, without any buy-in from the developer.
Redux evolves the ideas of Flux, but avoids its complexity by taking cues from Elm.
Whether you have used them or not, Redux only takes a few minutes to get started with.
To install the stable version:
```
npm install --save redux
This assumes you are using npm as your package manager.
If you're not, you can access these files on unpkg, download them, or point your package manager to them.
Most commonly people consume Redux as a collection of CommonJS modules. These modules are what you get when you import redux in a Webpack, Browserify, or a Node environment. If you like to live on the edge and use Rollup, we support that as well.
If you don't use a module bundler, it's also fine. The redux npm package includes precompiled production and development UMD builds in the dist folder. They can be used directly without a bundler and are thus compatible with many popular JavaScript module loaders and environments. For example, you can drop a UMD build as a