Coding task · Next.js course · Module 1: Next.js Configuration

Practice: Server Component

Server Components are the default mode in Next.js 13+ - they render on the server and can use async/await. No 'use client' = Server Component. Ideal for data fetching and SEO. They cannot use useState or onClick.

Task

Create an async Server Component ImplantDashboard (export default). Above the component, define an async function getImplants() that returns an array of 3 implants shaped { id, name, status }. In the component, fetch the data with const implants = await getImplants(), then display them in a <ul>: each implant as an <li key={implant.id}> with its name and status.