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

Function App

Video 107/state-intro/src/App.jsx:6–15  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

4import './App.css'
5
6function App() {
7 const [count, setCount] = useState(0)
8
9 return (
10 <>
11 <div>The count is {count}</div>
12 <button onClick={()=>{setCount(count + 1)}}>Update count</button>
13 </>
14 )
15}
16
17export default App

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected