-
-
Save reime005/bda69c6633ab3d43ea1b1451a7d91c42 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* src/Home.js */ | |
/* ... */ | |
import { connect } from "react-redux"; | |
/* ... */ | |
export const HomeContainer = connect( | |
state => ({ | |
counter: state.exampleReducer.counter | |
}), | |
dispatch => ({ | |
makeCall: () => dispatch(queuedSagaAction()), | |
takeEvery: () => dispatch(takeEverySagaAction()) | |
/* ... */ | |
}) | |
)(Home); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment