Created
October 15, 2015 15:36
-
-
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
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
// 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