Skip to content

Instantly share code, notes, and snippets.

@etc-tiago
Created May 6, 2020 17:07
Show Gist options
  • Save etc-tiago/8a5f0436aa1c7cd2deb4086c2e484767 to your computer and use it in GitHub Desktop.
Save etc-tiago/8a5f0436aa1c7cd2deb4086c2e484767 to your computer and use it in GitHub Desktop.
// import
import { Dispatch } from 'redux';
import { connect } from 'react-redux';
// On Export
export default connect<IState, IAction>(
(state: any) => ({
// code
}),
(dispatch: Dispatch) => ({
// dispatchs
}),
)(SettingsPage);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment