News for hackers. Stuff that matters.
Re:React in Patterns by kuwze on Sunday May 13, 2018 @02:12PM (#17060145)
There is another awesome gitbook, React in Depth[0].

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

Re:React in Patterns by weaksauce on Sunday May 13, 2018 @09:44PM (#17062103)
That was fantastic! Any other great guides like that or a repository of them?
Re:React in Patterns by jshc on Monday May 14, 2018 @12:22AM (#17062657)
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(); } }

Re:React in Patterns by mullsork on Monday May 14, 2018 @08:02AM (#17064699)
Do you mean instead of using !nextState.open and `this.state.open`? Reads a little easier to write out the booleans in my opinion.