menu_book Course Curriculum (Next.js) expand_more
App Router Foundations
Data and Rendering
Server Features
Server-side data fetching
Learn Server-side data fetching in Next.js through a focused explanation, a topic-specific example, an engineering warning, and a mastery check.
12 min read
•
Intermediate
Advertisement
nextjs-009.ts
typescript
export default async function Page(){ const res=await fetch('https://api.example.test/stats'); const stats=await res.json(); return <pre>{JSON.stringify(stats)}</pre>; }
What to watch
Content source & attribution
Original Syntaxis Content · Original Syntaxis Content