Skip to content

Instantly share code, notes, and snippets.

@rodoabad
Created October 5, 2018 13:49
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 rodoabad/aa8b95c720be84b23e5132cbc6680baf to your computer and use it in GitHub Desktop.
Save rodoabad/aa8b95c720be84b23e5132cbc6680baf to your computer and use it in GitHub Desktop.
import {UserGreeting} from './user-greeting';
import {connect} from 'react-redux';
const mapStateToProps = ({user}) => ({
firstName: user.firstName,
lastName: user.lastName
});
export const UserGreeetingConnector = connect(mapStateToProps)(UserGreeting);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment