Skip to content

Instantly share code, notes, and snippets.

@glortho
Created October 15, 2015 15:36
Show Gist options
  • Save glortho/26a56313a8f783699dd0 to your computer and use it in GitHub Desktop.
Save glortho/26a56313a8f783699dd0 to your computer and use it in GitHub Desktop.
Use listenTo decorator to bind React view-controllers to stores in Flux pattern
// Note: See one implementation of this here: https://gist.github.com/jedverity/458bc65fee43fb9873e1
@listenTo( MyStore )
class MyViewController extends React.Component {
render() {
const { fromMyStore } = this.props.MyStore;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment