Menu

Post image 1
Post image 2
Post image 3
1 / 3
0

Less code, better UX: Fetching data faster with the Next.js 13 App Router

Vercel News·Alice Alexandra Moore·4 days ago
#8DLBhHF9
#vercel#next#server#fetch#components#article
Reading 0:00
15s threshold

Fetch and render dynamic data directly inside React Server Components. There's plenty to be excited about with the launch of Next.js 13, from the release of the automatically self-hosted @next/font to the highly-optimized next/image component . Today, we'll talk about the app directory, and how React Server Components and nested layouts save time for developers and users alike when it comes to fetching data and serving it on Vercel. Ready to try out the App Router for yourself? Deploy this template in just one click to play with the Next.js 13 App Router. Deploy now With Next.js 13 App Router, we fetch data directly inside the relevant component instead of at the page level, and we're able to sharply reduce duplicate code. Additionally, thanks to layouts , we can render our dynamic header just one time between all pages that share the same layout. Take a look: Next.js introduced the `app` directory (beta), which allows you to fetch data directly in Server Components.…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.

Read More