Next.Js 공부하면서 다양한 페이지 이동 방법을 이용해 코드를 작성해 봤다. 잊어버리기 전에 정리해보자.오늘은 우선 Link컴포넌트와 useRouter 방식을 알아보자.<Link>은 HTML <a> 요소를 확장하여 prefetching과 클라이언트 측 라
들어가며 기본적으로 Next.js는 서버 컴포넌트를 사용한다. 이를 통해 추가 구성 없이 서버 렌더링을 자동으로 구현할 수 있으며, 필요할 때 클라이언트 컴포넌트 사용을 선택할 수 있다. 그래서 클라이언트 컴포넌트는 언제 사용하는가? 같이 알아보자. Server Co