Loading...
Loading...
Determine the order of console.log output when using useEffect and useLayoutEffect. Question: What will be the order of console output and why? Hints: • useLayoutEffect runs synchronously after all DOM mutations • useEffect runs asynchronously after paint • Both hooks fire after render phase Acceptance Criteria: ✓ Correct order of all console.log calls ✓ Explanation of difference between useEffect and useLayoutEffect ✓ Understanding of hook execution timing