React Server Components
Components run on the server by default and fetch their own data. Add "use client" where you need state, and only those components ship JavaScript.
- ▪layout.tsxServer
- └page.tsxawait getProduct(id)Server
- └<Reviews>await getReviews(id)Server
- └<AddToCart>"use client"Client