Skip to content

TypeScript and Redux

How to type the root state?

DefaultRootState

RootStateOrAny

  • The same as any

useSelector generic

typescript and redux: useSelector<RootState, State>

Last update: 2022-11-04