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

Function App

Video 120/src/App.jsx:9–25  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

7import { decrement, increment, multiply } from './redux/counter/counterSlice'
8
9function App() {
10 const count = useSelector((state) => state.counter.value)
11 const dispatch = useDispatch()
12
13 return (
14 <>
15 <Navbar />
16 <div>
17 <button onClick={() => dispatch(decrement())}>-</button>
18 Currently count is {count}
19 <button onClick={() => dispatch(increment())}>+</button>
20 <button onClick={() => dispatch(multiply())}>*</button>
21 </div>
22
23 </>
24 )
25}
26
27export default App

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected