October 2019
Intermediate to advanced
426 pages
11h 49m
English
We are now going to start connecting our components to the Redux store. The presentational components can stay the same as before. We only create new components—container components—that wrap the presentational components, and pass certain props to them.
Let's connect the AddTodo component now:
import { connect } from 'react-redux'import { bindActionCreators } from 'redux'
import { addTodo } from '../actions' ...Read now
Unlock full access