Skip to content

Instantly share code, notes, and snippets.

@Abazhenov
Created December 28, 2017 17:44
Show Gist options
  • Save Abazhenov/3f09ce0592cfb2368c4e20f630accd57 to your computer and use it in GitHub Desktop.
Save Abazhenov/3f09ce0592cfb2368c4e20f630accd57 to your computer and use it in GitHub Desktop.
decorators for react-redux
import { connect } from 'react-redux'
const mapStateToProps = (mapStateToProps, options) => {
return connect(mapStateToProps, {});
}
const mapDispatchToProps = (mapDispatchToProps, options) => {
const mapStateToProps = () => ({});
return connect(mapStateToProps, mapDispatchToProps);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment