Skip to content

Instantly share code, notes, and snippets.

@amanjuneja3012
Created July 27, 2018 12:42
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 amanjuneja3012/1f1823451e62dc34a4c3f62d8b445157 to your computer and use it in GitHub Desktop.
Save amanjuneja3012/1f1823451e62dc34a4c3f62d8b445157 to your computer and use it in GitHub Desktop.
Code to reduce mapStateToProps function boilerplate
const mapStateToProps = (state) => ({ ...customMapState(state, 'IndentReducer') });
export default connect(mapStateToProps, actions)((customPropsToJSIfNeeded(Indent)));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment