easy12 min
Build Tabs
Build a tabbed interface where clicking a tab header shows its corresponding content panel. The active tab should be visually highlighted. This exercise focuses on indexed state management and rendering different content based on state.
Skills
useStateevent handlingconditional rendering
Tests
- Renders all tab labels
- First tab is active by default
- Clicking a tab shows its content
- Active tab is visually highlighted
Loading editor...