Skip to content

Instantly share code, notes, and snippets.

@tfiechowski
Last active October 29, 2018 00:38
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 tfiechowski/8edbf6948786fc5c4dd7e9e8371c86f7 to your computer and use it in GitHub Desktop.
Save tfiechowski/8edbf6948786fc5c4dd7e9e8371c86f7 to your computer and use it in GitHub Desktop.
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