Put in order · JavaScript and React course · Module 5: useEffect and Custom Hooks
useLayoutEffect
Arrange the order of hook execution during rendering:
Items to put in order
- useEffect (asynchronously)
- Component render
- DOM mutation
- useLayoutEffect (synchronously)
- Screen painting
You can check the correct answer by solving this task in the CodeWorlds game.