DEV Community

loading...

Discussion on: Taking React and Redux to the next level with Typescript

Collapse
jjplusplus profile image
Jj Medina

So, keeping in mind that I'm brand new to TypeScript, I don't think it was clear where you got the Dispatch from in the line const mapDispatchToProps = (dispatch: Dispatch<AnyAction>) =>

Collapse
wolverineks profile image
Kevin Sullivan

import { Dispatch} from redux
More cool stuff github.com/piotrwitek/react-redux-...