Loading homepage
Build a reusable component that shows a row of tab buttons and one matching content panel at a time. Use local state to track selection, support a starting tab, and keep multiple groups independent.
The supplied page contains two populated groups and an empty group. Add interaction to the starter components; styles and sample content are already provided.
Input: Initial render Output: Primary: HTML panel. Secondary: CSS panel.
Input: Click JavaScript in the primary group Output: Primary shows its JavaScript panel; secondary stays on CSS.
Input: Empty items Output: No buttons and no panel.
Each populated group displays one selected button and its matching content. The secondary group initially selects CSS.