Next.js isn't just React. It's a full-stack framework that runs code both on the server and client.
In Next.js, components are by default Server Components — they don’t run in the browser unless you tell them to.
useEffect, useState, or onClick)console.log) will show up in the terminal, not the browserExample: Layouts, headers, static text components
useState, useEffect)onClick)To use a Client Component, add this at the very top of the file:
"use client";
Example Use Case:
An image slideshow that changes images every 5 seconds using useEffect.