I have this component:
const MyComponent = () => { const [tab, setTab] = useState("tab1"); return( <>