CSR 내부의 Server Component는 어떻게 될까?

notion image
 
YouTubeYouTubeServer Components in Client Components?? (React / Next.js)
Video preview
위 유튜브 영상을 보고 흥미로웠다.
Server Component어디서 import 할 지에 따라 next.js의 판단이 달라진다는 내용이다.
Server Component 일 지라도 CSR 하위에서 import 되었다면 CSR로 변환된다고 얘기한다.
 
Rendering: Client Components
Defining multiple use client entry points:
You can define multiple "use client" entry points in your React Component tree. This allows you to split your application into multiple client bundles.
However, "use client" doesn't need to be defined in every component that needs to be rendered on the client. Once you define the boundary, all child components and modules imported into it are considered part of the client bundle.
공식문서에서 Tip 란에 관련 내용이 있다.
한번 ‘use client’라는 바운더리를 세우면, 모든 자식 컴포넌트그 안에서 임포트 되는 모듈들client bundle의 일부로 간주된다는 내용이다.