import * as actionCreators from './actionCreators'import { bindActionCreators } from 'redux'
function mapStateToProps(state) { return { todos: state.todos }}
function mapDispatchToProps(dispatch) { return { actions: bindActionCreators(actionCreators, dispatch) }}
export default connect(mapStateToProps, mapDispatchToProps)(TodoApp)
mapStateToProps(state)这个函数的state是指的什么?它是存放在哪里的,以及如何能知道这个state发生了改变?
actions: bindActionCreators(actionCreators, dispatch)这一行代码中,下划线部分不用使用相同的名字么?