Redner Phase
와 Commit phase
를 이해했다면 useEffect
를 사용할 때와, useLayoutEffect
의 동작방식을 이해하고 각각을 적절한 상황에 사용할 수 있다.React then sets a short timeout, and when it expires, runs all theuseEffect
hooks. This step is also known as the "Passive Effects
" phase.