Hacker News new | ask | show | jobs
by kuwze 2961 days ago
There is another awesome gitbook, React in Depth[0].

[0]: https://developmentarc.gitbooks.io/react-indepth/content/

2 comments

That was fantastic! Any other great guides like that or a repository of them?
curious 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(); } }

Do you mean instead of using !nextState.open and `this.state.open`? Reads a little easier to write out the booleans in my opinion.