React-Redux useSelector typescript type for state
https://stackoverflow.com/questions/57472105/react-redux-useselector-typescript-type-for-state
WebAug 13, 2019 · You can create your custom typed useSelector like so: import { useSelector as useReduxSelector, TypedUseSelectorHook, } from 'react-redux' import { RootState } from 'app/redux/store' export const useSelector: TypedUseSelectorHook<RootState> = useReduxSelector where RootState is the type of the store, usually defined as:
DA: 89 PA: 60 MOZ Rank: 91