[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(); } }
I learned React reasonably quick. But when I started writing production application, I got into so many cases which were not covered in introductory materials. I found answers to some of these cases via google; I had to find answers to many others by trial and error.
That is why people sharing these type of patterns helps. We all become wiser before getting into wild forest.
On the one hand, this makes it really flexible and it can keep up with the new things that happen in JS-land.
On the other hand it's always bleeding edge.
I don't feel like react's docs are misleading - like anything - mastery requires investment.
What makes React seem so daunting is the rest of the ecosystem: Webpack, Babel, Redux/MobX/MST/Apollo/Relay, React Router, etc.
The most common misconception is that you have to understand all of those technologies to get started. Luckily tools like Create React App have started to change that.