redux Pure Redux - Redux without any framework

Help us to keep this website almost Ad Free! It takes only 10 seconds of your time:
> Step 1: Go view our video on YouTube: EF Core Bulk Extensions
> Step 2: And Like the video. BONUS: You can also share it!

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);


Got any redux Question?