Skip to content

Instantly share code, notes, and snippets.

@pirate
Last active December 20, 2017 22:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pirate/02b28285fc6b6e9ab3823f62c738ebbb to your computer and use it in GitHub Desktop.
Save pirate/02b28285fc6b6e9ab3823f62c738ebbb to your computer and use it in GitHub Desktop.
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