Hacker News new | past | comments | ask | show | jobs | submit login

The default is client components. You need to opt-in to server components by running a server that serves up your root component as a server component.



No, the default is shared. It's literally in the RFC.

That's why using any interactivity in a component default breaks until you add "use client". The alternative would have been to have state, a core concept of React, work correctly by default, and make server/shared components explicitly marked.




Join us for AI Startup School this June 16-17 in San Francisco!

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: