()
| 7 | import { decrement, increment, multiply } from './redux/counter/counterSlice' |
| 8 | |
| 9 | function 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 | |
| 27 | export default App |
nothing calls this directly
no outgoing calls
no test coverage detected