Skip to content

Instantly share code, notes, and snippets.

@jareware
Created December 29, 2015 16:14
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 jareware/0a0624439652b86ae36f to your computer and use it in GitHub Desktop.
Save jareware/0a0624439652b86ae36f to your computer and use it in GitHub Desktop.
export default renderFromStores(
[ 'fooStore', 'barStore' ],
({ fooStore, barStore, bazActions }) => (
<div>
Hola {fooStore.getName()}!
<button onClick={bazActions.doStuff}>Cheap</button>
<button onClick={() => bazActions.doStuffWith(fooStore.getName())}>Expensive</button>
</div>
)
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment