October 2019
Intermediate to advanced
426 pages
11h 49m
English
Next, we are going to connect the TodoItem component, so that we can use it in the TodoList component in the next step.
Let's connect the TodoItem component now:
import { connect } from 'react-redux'import { bindActionCreators } from 'redux'
import { toggleTodo, removeTodo } from '../actions'import TodoItem from '../components/TodoItem'
function mapStateToProps (state) { return {}}
Read now
Unlock full access