ReduxJS/Toolkit: TypeScript
How to keep all this type-safe
You don’t want to be using useDispatch
, useSelector
etc directly
in your code. Instead they are wrapped so that you can enjoy complete
type safety!