Diving into RSCs: Client Components
Lets create a client component here that logs "Running the client component" named
MyClientComponent
- If components require interactivity or hooks they should run on the client
- Default is to treat components as server components new
- Opt in with
'use client';
- Client-components by default are pre-rendered on the server (SSR) old
- Lets go to the code again and find
MyClientComponent
$La