1.0.0 • Published 4 years ago
testredux v1.0.0
What is this?
Test redux library scratch
How to install
npm i testRedux --save
option
only test purpose
functions
createStore()
- create central store
getState()
- get the latest states of component
subscribe()
- subscribe store by component
dispatch()
- Send Action to reducers
getInitialState()
- get the initial state of component
Reducer()
- pass the change of a component to the central store
subscribe()
- done by a component to get the changes through the central store
1.0.0
4 years ago