useLayoutEffect

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