()
| 1 | import { useState } from "react"; |
| 2 | |
| 3 | function Counter(){ |
| 4 | const [count,setCount] = useState(0); |
| 5 | return ( |
| 6 | <> |
| 7 | <h1>Counter Application of mne:{count}</h1> |
| 8 | <button onClick={()=>setCount(count+1)}>Increment</button> |
| 9 | <button onClick={()=>setCount(count-1)}>Decrement</button> |
| 10 | </> |
| 11 | ) |
| 12 | } |
| 13 | |
| 14 | export default Counter; |
nothing calls this directly
no outgoing calls
no test coverage detected