useTypedSelector()
↔ Custom Hook var of useSelector()
with fixed type annotations
import { useSelector, TypedUseSelectorHook } from "react-redux";
import { RootState } from "../state";
export const useTypedSelector: TypedUseSelectorHook<RootState\> = useSelector;