UNPKG

@25sprout/react-starter

Version:

25sprout web starter with React

16 lines (11 loc) 392 B
import { connect } from 'react-redux'; import { getBlogs, cleanBlogs } from 'actions/blog'; import Blogs from './component'; const mapStateToProps = state => ({ posts: state.blogs.posts, }); const mapDispatchToProps = dispatch => ({ getBlogs: () => dispatch(getBlogs()), cleanBlogs: () => dispatch(cleanBlogs()), }); export default connect(mapStateToProps, mapDispatchToProps)(Blogs);