October 2019
Intermediate to advanced
426 pages
11h 49m
English
Next up is the TodoFilter component. Here, we are going to use both mapStateToProps and mapDispatchToProps.
Let's connect the TodoFilter component now:
import { connect } from 'react-redux'import { bindActionCreators } from 'redux'
import { filterTodos } from '../actions'import TodoFilter from '../components/TodoFilter'
function mapStateToProps (state) { const { filter } = state ...Read now
Unlock full access