React Lifecycle: useEffect Order
Medium
Determine the order of console.log output in the following code. Question: What will be the order of console output and why? Hints: • Think about execution order: render → commit → effects • Remember the order of hook calls • Consider component hierarchy (parent → child) Acceptance Criteria: ✓ Correct order of all console.log calls ✓ Explanation of why this order occurs ✓ Understanding of useEffect behavior