Command Palette

Search for a command to run...

Hectal
Phase 11: React Three Fiber
3D Web · Exercise 4 of 5 PreviousNext
Intermediate

Load with a fallback

The bike loads, and until it does the canvas is empty. Add a <Suspense> around it with a fallback: a mesh named loading. When the bike has arrived, the loading mesh must be gone.

What Check tests

  1. The code uses Suspense with a fallback
  2. The bike arrives (a node named bike)
  3. The loading mesh is gone afterwards

Stuck? One hint at a time

The solution unlocks after your first Check. Try first: that is where the learning happens.

Runs in your browser. Your code is saved here.

Your page

Press Run to see the page.

Console

Nothing logged yet.