Thanks for this. With `componentWillMount` being removed, where should `setState` be called, if you want to for example always ensure that something like isValid is set to false when the component mounts. componentDidMount wouldn’t be the correct place for that as it would render once incorrectly. Would you do it in `getDerivedStateFromProps` perhaps?

I make UIs and such. Using JS mostly but I like to dabble.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store