()
| 3 | import { counterContext } from '../context/context' |
| 4 | |
| 5 | const Button = () => { |
| 6 | const value = useContext(counterContext) |
| 7 | return ( |
| 8 | <div> |
| 9 | <button onClick={() => value.setCount((count) => count + 1)}><span><Component1/></span>I am a button</button> |
| 10 | </div> |
| 11 | ) |
| 12 | } |
| 13 | |
| 14 | export default Button |
nothing calls this directly
no outgoing calls
no test coverage detected