redux-root-state
v0.0.3
Published
Return the `DefaultRootState` interface back to the [react-redux](https://www.npmjs.com/package/react-redux) library.
Downloads
4
Maintainers
Readme
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";