There is another awesome gitbook, React in Depth[0].
[0]: https://developmentarc.gitbooks.io/react-indepth/content/
[0]: https://developmentarc.gitbooks.io/react-indepth/content/
// dispatching an action based on state change componentWillUpdate(nextProps, nextState) { if (nextState.open == true && this.state.open == false) { this.props.onWillOpen(); } }