Last active
October 5, 2018 13:02
-
-
Save rodoabad/07725f36fb512e44256467e536a0af9c to your computer and use it in GitHub Desktop.
This file contains hidden or 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 default connect(mapStateToProps)(UserGreeting); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment