Created
September 3, 2017 09:45
-
-
Save enkot/6dffda4e2acb39e53bb448342bae6f15 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
// Listen for changes | |
componentDidMount() { | |
ListStore.on('change', this._onChange); | |
} | |
// Update view state when change event is received | |
_onChange: function() { | |
this.setState(ListStore.getState()); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment