Last active
April 30, 2017 20:54
-
-
Save santiagopoli/0291572355e151475b55fc327dbf7581 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
| const mapDispatchToProps = (dispatch, props) => ({ | |
| onSelectFavorite: (favorite) => { | |
| props.onSelectFavorite(favorite); | |
| dispatch(fetchFavoriteInfo(favorite.id)); | |
| } | |
| }) | |
| const mapStateToProps = (state) => ({ | |
| favorites: state.favorites | |
| }) | |
| export default connect(mapStateToProps, mapDispatchToProps)(FavoritesView) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment