score:0

  const mapDispatchToProps = (dispatch) => {
   return {
    onTodoClick: (id) => {
      dispatch(toggleTodo(id))
    }
   }
  }

export default connect(mapStateToProps, mapDispatchToProps)(TodoApp)

Related Query

More Query from same tag