Skip to content

Instantly share code, notes, and snippets.

@gladchinda
Created August 29, 2018 08:46
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 gladchinda/fde415b8d5e5715b294c75c4d3b42d2e to your computer and use it in GitHub Desktop.
Save gladchinda/fde415b8d5e5715b294c75c4d3b42d2e to your computer and use it in GitHub Desktop.
const mapStateToProps = function(state) {
return {
profile: state.user.profile,
loggedIn: state.auth.loggedIn
}
}
export default connect(mapStateToProps)(ProfileComponent);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment