Next.js·Practice drills 2

Drill 9: Key term — Server data

Identify the key term in the example and define it.

Intermediate 5 min read Lesson 48 of 150 Challenge included
What you will be able to do
  • Identify the key term in the example and define it.

Practice task

Identify the key term in the example and define it.

app/courses/page.tsxJavaScript
export default async function Courses() {
  const res = await fetch('https://example.com/api/courses', { cache: 'no-store' })
  const courses = await res.json()
  return <ul>{courses.map((c) => <li key={c.slug}>{c.title}</li>)}</ul>
}
Your turn

Write your answer

Easy

Identify the key term in the example and define it.

TEXT · starter
Your answer…
Study tools

Make it yours.

Keep a private note for this lesson, then turn the key ideas into flashcards you can revisit.

Sign in to save notes and flashcards.Both are private to your account and stay with your progress.
Sign in
Finished reading?

Lock in what you just learned.

Mark this lesson complete to save your place and move one step closer to the certificate.

Lesson 48 of 150 · 0% of course