Not on purpose, I placed the redux useDispatch function outside the react component as the following:
useDispatch
As you can see, the compiler complains. The