()
| 8 | } from "../state/counter/counterSlice"; |
| 9 | |
| 10 | const Counter = () => { |
| 11 | const count = useSelector((state: RootState) => state.counter.value); |
| 12 | const dispatch = useDispatch<AppDispatch>(); |
| 13 | |
| 14 | return ( |
| 15 | <div> |
| 16 | <h2>{count}</h2> |
| 17 | <div> |
| 18 | <button onClick={() => dispatch(incrementAsync(10))}>Increment</button> |
| 19 | <button onClick={() => dispatch(decrement())}>Decrement</button> |
| 20 | </div> |
| 21 | </div> |
| 22 | ); |
| 23 | }; |
| 24 | |
| 25 | export default Counter; |
nothing calls this directly
no test coverage detected