Switch-Case Component in React
Implement a Switch/Case JSX component pattern — a clean alternative to long chains of ternary operators or if-else blocks in JSX. <Switch value={x}> inspects its children and renders only the <Case when={y}> where x === y. Must support a <Default> fallback child rendered when no Case matches.