Skip to content

TypeScript and Redux

How to type the root state?

DefaultRootState

RootStateOrAny

useSelector generic

typescript and redux: useSelector<RootState, State>

Last update: 2022-09-23