Notice that the render begins when the button is clicked, however the UI doesn’t update till the render has accomplished.
React doesn’t do the "double render" thing we’ve been talking about as a result of React doesn’t have a previous value it can use. https://katrinamyti781135.activoblog.com/30489829/the-definitive-guide-to-pena-slot