MCPcopy
hub / github.com/facebook/react / toggleHighlight

Function toggleHighlight

fixtures/owner-stacks/src/App.js:108–114  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

106 const [highlight, setHighlight] = useState(false);
107
108 const toggleHighlight = () => {
109 console.time('toggleHighlight');
110 flushSync(() => {
111 setHighlight(!highlight);
112 });
113 console.timeEnd('toggleHighlight');
114 };
115
116 return (
117 <div className="App">

Callers

nothing calls this directly

Calls 1

flushSyncFunction · 0.85

Tested by

no test coverage detected