Put in order · Next.js course · Module 1: Next.js Configuration
Lifecycle in App Router
Arrange the order of the component lifecycle in App Router
Items to put in order
- Server renders HTML
- useEffect runs
- Server Component fetch
- Client hydration
Show the answer
Correct order:
- Server Component fetch
- Server renders HTML
- Client hydration
- useEffect runs