tofuness/Toshocat

View on GitHub
src/containers/ExploreContainer.js

Summary

Maintainability
A
0 mins
Test Coverage
import { bindActionCreators } from 'redux';
import { connect } from 'react-redux';

import Explore from '../components/Explore';
import * as exploreActions from '../actions/explore';

function mapStateToProps(state) {
  return {
    featured: state.featured,
    collections: state.collections
  };
}

function mapDispatchToProps(dispatch) {
  return bindActionCreators(exploreActions, dispatch);
}

export default connect(mapStateToProps, mapDispatchToProps)(Explore);