diff --git a/packages/react/src/components/tabs/examples/controlled.tsx b/packages/react/src/components/tabs/examples/controlled.tsx index 8477684a74..56a2ca5638 100644 --- a/packages/react/src/components/tabs/examples/controlled.tsx +++ b/packages/react/src/components/tabs/examples/controlled.tsx @@ -1,22 +1,11 @@ import { Tabs } from '@ark-ui/react/tabs' import { useState } from 'react' -let i = 0 - export const Controlled = () => { const [value, setValue] = useState('react') return ( - { - if (i === 0) { - i++ - } else { - setValue(e.value) - } - }} - > + setValue(e.value)}> React Vue