This is simple Redux sample.
This project don't use react.
I am referring to the following project.
https://github.com/reactjs/redux/tree/master/examples/counter-vanilla
I implemete Redux objects.
- Reducer
- Store
- If click increment or decrement button, send Action to the Store by calling dispath().
- Reducer return the State according to the Action.
- If change the State, render() is executed.
- Using subscribe(), if the State is changed, render() is called.
- Get the State and directly rewrites the value by manipulating DOM on the render().
None.
Just using browder.
Just open index.html by browser