reduxPure Redux - Redux without any framework


Parameters

ParamenterDescription
actionIt must be an object with at least the type property. Any other property can be passed and will be accessible within the reducer function.

Remarks

If you're not using bundlers like Webpack and Browserify, change the first line to:

const { createStore } = Redux;

Or just call it directly from the Redux global when creating the store:

const store = Redux.createStore(counter);