MCPcopy Create free account
hub / github.com/CodeWithHarry/Sigma-Web-Dev-Course / Button

Function Button

Video 116/src/components/Button.jsx:5–12  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

3import { counterContext } from '../context/context'
4
5const 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
14export default Button

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected