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

Function App

react-unit-test/src/App.tsx:3–18  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1import useCounter from './useCounter';
2
3function App() {
4
5 const [count, increment, decrement] = useCounter();
6
7 return (
8 <div>
9 <div>
10 {count}
11 </div>
12 <div>
13 <button onClick={() => increment(1)}>加一</button>
14 <button onClick={() => decrement(2)}>减二</button>
15 </div>
16 </div>
17 );
18}
19
20export default App;

Callers

nothing calls this directly

Calls 3

useCounterFunction · 0.85
incrementFunction · 0.85
decrementFunction · 0.85

Tested by

no test coverage detected