Wait so in the prop change example they are now recommending that you can update state during a component render?
This useful guide points it out as well: https://blog.isquaredsoftware.com/2020/05/blogged-answers-a-...
This should be faster than useEffect which only executes after the entire render has been committed to the DOM.
I guess this makes sense, but it's weird after all the "never do anything stateful in render"