3 ms·
There is another awesome gitbook, React in Depth[0]. [0]: https://developmentarc.gitbooks.io/react-indepth/content/ https://developmentarc.gitbooks.io/react-in
by kuwze 8y ago
There is another awesome gitbook, React in Depth[0].
[0]: https://developmentarc.gitbooks.io/react-indepth/content/ https://developmentarc.gitbooks.io/react-indepth/content/
- weaksauce 8y agoThat was fantastic! Any other great guides like that or a repository of them?
- jshc 8y agocurious about the explicit true and false in one of their code examples. any good reason for that? // dispatching an action based on state change componentWillUpdate(nextProps, nextState) { if (nextState.open == true && this.state.open == false) { this.props.onWillOpen(); } }
- mullsork 8y agoDo you mean instead of using !nextState.open and `this.state.open`? Reads a little easier to write out the booleans in my opinion.