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

Function App

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

Source from the content-addressed store, hash-verified

27}
28
29function App() {
30 const [count, setCount] = useState(0);
31
32 const updateCount = () => {
33 setCount(count + 1);
34 };
35
36 useInterval(updateCount, 1000);
37
38 return <div>{count}</div>;
39}
40
41export default App;

Callers

nothing calls this directly

Calls 2

useStateFunction · 0.90
useIntervalFunction · 0.85

Tested by

no test coverage detected