Last active
October 29, 2018 00:38
-
-
Save tfiechowski/8edbf6948786fc5c4dd7e9e8371c86f7 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 { connect } from 'react-redux'; | |
import PhotoList from 'components/PhotoList'; | |
import { fetchPhotos } from './modules/Photos/actions'; | |
const mapStateToProps = state => ({ | |
photos: state.photos.photos, | |
}); | |
const mapDispatchToProps = { | |
fetchPhotos, | |
}; | |
export default connect( | |
mapStateToProps, | |
mapDispatchToProps, | |
)(PhotoList); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment