August 2017
Beginner
374 pages
10h 41m
English
Next, we implement the ConnectedFilterList component. For this component, we need to use mapDispatchToProps to inject the action creators:
import { connect } from 'react-redux'
import { bindActionCreators } from 'redux'
import FilterList from '../components/FilterList.jsx'import { setFilter, clearFilter } from '../actions'
const mapStateToProps = (state, props) => {
const categories = state.posts.reduce((acc, ...
Read now
Unlock full access