import React, { Component } from 'react'; import { bindActionCreators } from 'redux'; import { Connector } from 'react-redux'; import Header from '../components/Header'; import MainSection from '../components/MainSection'; import * as TodoActions from '../actions/TodoActions'; export default class TodoApp extends Component { render() { return ( ({ todos: state.todos })}> {this.renderChild} ); } renderChild({ todos, dispatch }) { const actions = bindActionCreators(TodoActions, dispatch); return (
); } }