Last active
December 20, 2017 22:59
-
-
Save pirate/02b28285fc6b6e9ab3823f62c738ebbb to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import {reduxify} from 'reduxify' | |
import {action1, action2} from 'myActions' | |
const MyComponent = reduxify({ | |
mapDispatchToProps: ({action1, action2}), | |
render: ({action1, action2}) => | |
<div> | |
<button onClick={action1}>Do first action</button> | |
<button onClick={action2}>Do second action</button> | |
</div> | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment