Beginner
Spin without state
The spinner works, but React renders it on every frame. Rewrite it so it spins through a ref in useFrame, with no useState, and renders only once or twice.
What Check tests
- The mesh named spinner turns
- The component rendered fewer than 5 times
- The code does not use useState
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.