MCPcopy Create free account
hub / github.com/QuarkGluonPlasma/react-course-code / updateCount

Function updateCount

closure-trap/src/App4.tsx:32–34  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

30 const [count, setCount] = useState(0);
31
32 const updateCount = () => {
33 setCount(count + 1);
34 };
35
36 useInterval(updateCount, 1000);
37

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected