MCPcopy
hub / github.com/BetaSu/big-react / selectTab

Function selectTab

demos/transition/main.tsx:14–18  ·  view source on GitHub ↗
(nextTab)

Source from the content-addressed store, hash-verified

12 const [tab, setTab] = useState('about');
13 console.log('hello');
14 function selectTab(nextTab) {
15 startTransition(() => {
16 setTab(nextTab);
17 });
18 }
19
20 return (
21 <>

Callers 1

AppFunction · 0.85

Calls 1

startTransitionFunction · 0.85

Tested by

no test coverage detected