Explore / React

Tabs

Easy ยท React

What to build

Build a Tabs component โ€” clicking a tab shows its content and hides the others. Make it generic: driven by a `{ label, content }` array so any number of tabs can be passed in.

Build it in the browser editor on GrindPrep (desktop) and compare with the reference solution.