OKOGASAWARA KAKERUinkkr-netxjs-blog.hashnode.dev·Jun 26 · 1 min readNext.js ~API Routes~With API Routes(or Route Handlers) of Next.js, you can build the API endpoint in the application directly without an extra server. There are two ways: App Router and Pages Router. Each of them has a d00
OKOGASAWARA KAKERUinkkr-netxjs-blog.hashnode.dev·Jun 23 · 3 min readNext.js ~Searchparams~Server Component(Page component)You fetch searchParams from the Props of the page on the server. ⚠️ Caution: Since Next.js15, you need await to get the searchParams. And you cannot get the searchParam00
OKOGASAWARA KAKERUinkkr-netxjs-blog.hashnode.dev·Jun 16 · 3 min readNext.js ~Server and Client Components~By default, layouts and pages are Server Components, which lets you fetch data and render parts of your UI on the server, optionally cache the result, and stream it to the client. When you need intera00
OKOGASAWARA KAKERUinkkr-netxjs-blog.hashnode.dev·Jun 4 · 2 min readNext.js ~What is the React Server Component (RSC) Payload~The React Server Component is a specialized, compact binary data format used by Next.js to transfer the rendered result of Server Components from the server to the client. What is inside the RSC Paylo00
OKOGASAWARA KAKERUinkkr-netxjs-blog.hashnode.dev·May 27 · 3 min readNext.js ~Meta data~Next.js(App Router) generates metadata that can be used for SEO or SNS sharing by exporting a meta object or generateMetadata functionality from layout.tsx or page.tsx.Unlike the traditional pages dir00