()
| 1 | import useCounter from './useCounter'; |
| 2 | |
| 3 | function 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 | |
| 20 | export default App; |
nothing calls this directly
no test coverage detected