Just got a bit confused about the lifecycle in react. Here's my understanding...
The
render()always run first, right? If so...
It implies that asetState()insideuseEffect()only runs after the initialrender(), correct?
Question:
When the above happens, does the entire component re-render?
So that would be a second time the component renders just to load a state.
Wouldn't that be a performance issue?
