Server Components render trên server, không có state/effects/event handlers, có thể trực tiếp access database và file system, không thêm bundle size JavaScript.
- Client Components (với 'use client') chạy trên browser, có interactivity.
- Server Components được giới thiệu trong React 18 và là nền tảng của Next.js App Router.
Server Components render entirely on the server, have no state/effects/event handlers, can directly access databases and the file system, and add zero JavaScript to the client bundle.
- Client Components (marked with 'use client') run in the browser and support full interactivity.
- Server Components were introduced in React 18 and are the foundation of the Next.js App Router.