Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Challenge: Skeleton Loader | Working with Data
course content

Зміст курсу

Next.js 14

Challenge: Skeleton LoaderChallenge: Skeleton Loader

Your turn! Apply what you've just learned by refactoring the <LatestInvoices> component.

  1. Move the fetchLatestInvoices() function down from the page to the <LatestInvoices> component;
  2. Surround the component with a <Suspense> boundary, providing a fallback called <LatestInvoicesSkeleton>.
Try to solve it yourself, but refer to the solution below if you encounter any issues.
app/dashboard/(overview)/page.tsx
app/ui/dashboard/latest-invoices.tsx

In Practice

Все було зрозуміло?

Секція 5. Розділ 7
course content

Зміст курсу

Next.js 14

Challenge: Skeleton LoaderChallenge: Skeleton Loader

Your turn! Apply what you've just learned by refactoring the <LatestInvoices> component.

  1. Move the fetchLatestInvoices() function down from the page to the <LatestInvoices> component;
  2. Surround the component with a <Suspense> boundary, providing a fallback called <LatestInvoicesSkeleton>.
Try to solve it yourself, but refer to the solution below if you encounter any issues.
app/dashboard/(overview)/page.tsx
app/ui/dashboard/latest-invoices.tsx

In Practice

Все було зрозуміло?

Секція 5. Розділ 7
some-alt