Javascript – How to avoid gaps in the lifecycle of a react component
I'm currently learning how to use function components in react and got a bit of a timing problem. As it seems, the event that should trigger a rerender is called between the rendering of the component and the call to…