This interface allows you to easily create a hook that is properly typed for your store's root state.
interface RootState { property: string;}const useTypedSelector: TypedUseSelectorHook<RootState> = useSelector; Copy
interface RootState { property: string;}const useTypedSelector: TypedUseSelectorHook<RootState> = useSelector;
Optional
This interface allows you to easily create a hook that is properly typed for your store's root state.
Example