Untitled
Fold the Video
next js uses file path as a route
when needed!!dd
app에서
Their experience. Now in case you want to turn that server side component by default into a client-side. One, you need to add the use client directive.
The top of your page, to turn it into a client-side component, using the boat, the client components and the server components allows us to leverage the benefits of server-side rendering while still Rising react capabilities for building Dynamic and interactive user interfaces. This is an example of a typical server side component.
It is a simple component, consisting of a navigation bar that has a logo and a search bar. It also has some main content with ap tag.
when to use client and server component?
everything is file based!
no need to add router
-> react
-> nextjs
layout을 특정 라우트에만 적용하는 것도 가능
넥스트는 SSG를 디폴트로 한다.
코드를 깔끔히 하기 위해서 api 폴더에 넣는 것을 추천
page.js와 함께 route.js가 위치하면 안된다
Last Updated:
Summarize & share videos seamlessly
Loading...