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:

  1. Server Component fetch
  2. Server renders HTML
  3. Client hydration
  4. useEffect runs