Created
October 5, 2018 13:49
-
-
Save rodoabad/aa8b95c720be84b23e5132cbc6680baf to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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