0.0.3 • Published 1 year ago

redux-root-state v0.0.3

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

redux-root-state

Return the DefaultRootState interface back to the react-redux library.

How to Use

Step 1.

npm i redux-root-state

Step 2.

type RootState = ReturnType<typeof store.getState>;

declare module "redux-root-state" {
  export interface DefaultRootState extends RootState {}
}

Step 3.

import { useDispatch, useSelector, connect } from "redux-root-state";