Correctly using React this.state and truly being a state machine
We are all trained in React that NEVER EVER do this.setState() (or derivative) in your render() method, right? It is considered evil. There is general fantasy that render() should be 100% benign, no side effects, 100% repeatable no matter how often re-called, right? There are two main reasons for this fantasy. One is some purist …
Correctly using React this.state and truly being a state machine Read More »