MCPcopy Index your code
hub / github.com/react/react / handleTabChange

Function handleTabChange

compiler/apps/playground/components/TabbedWindow.tsx:28–33  ·  view source on GitHub ↗
(tab: string)

Source from the content-addressed store, hash-verified

26 const transitionName = `tab-highlight-${id}`;
27
28 const handleTabChange = (tab: string): void => {
29 startTransition(() => {
30 addTransitionType(TOGGLE_TAB_TRANSITION);
31 onTabChange(tab);
32 });
33 };
34
35 return (
36 <div className="flex-1 min-w-[550px] sm:min-w-0">

Callers 1

TabbedWindowFunction · 0.85

Calls 2

startTransitionFunction · 0.90
addTransitionTypeFunction · 0.85

Tested by

no test coverage detected