deku-redux
Bindings for redux in deku.
npm install deku-redux
Redux
Read the docs about Redux: Redux docs. If you are familiar with react-redux, deku-redux is very similar.
storePlugin(store)
Add your store to your tree with storePlugin
. It is required for connect
to be able to get access to your state.
;;;;;; const store = ; const app = ; ;
connect([mapStateToProps], [mapDispatchToProps], [mergeProps])
Use connect
higher-order component for connecting to your state, same as connect
from react-redux.
See Redux with React for more information on how to use.