simred-deku
Deku bindings for Simred
If you do know what Simred is, take a look at the project's GitHub page.
If Deku is unknown to you, pay a visit to its GitHub repo.
It works more like react-redux
rather than using the context/dispatch parameters in deku.
However, I thought it would be better to only give access to the store to components that
actually require it, i.e. Container Components.
Note to React users Deku doesn't require the use of a
<Provider/>
Component. The simple use of theconnect()
and the customrender()
functions will suffice.
Installation
$ npm install --save simred-deku
Usage
Implementing a Container Component
const mapStateToProps = { const todos filter = state return todos } const mapActionsToProps = { const add = actionstodos return addTodo: add} const Container = Component
Passing the Store to the app
const store = Simred
License
MIT © Gaël PHILIPPE