Skip to content

Instantly share code, notes, and snippets.

@reime005
Created September 8, 2019 20:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save reime005/bda69c6633ab3d43ea1b1451a7d91c42 to your computer and use it in GitHub Desktop.
Save reime005/bda69c6633ab3d43ea1b1451a7d91c42 to your computer and use it in GitHub Desktop.
/* 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