MapDispatchToProps doubt in connect in react-redux

Code one:

import { addTodo } from "./actionCreators"
import { bindActionCreators } from "redux"

function mapStateToProps(state) {
  return { todos: state.todos }
}

function mapDispatchToProps(dispatch) {
  return bindActionCreators({ addTodo }, dispatch)
}

export default connect(mapStateToProps, mapDispatchToProps)(TodoApp)

Code 2:

import { addTodo } from "./actionCreators"

function mapStateToProps(state) {
  return { todos: state.todos }
}

const mapDispatchToProps = {
  addTodo
}

export default connect(mapStateToProps, mapDispatchToProps)(TodoApp)

the role of the above two pieces of code is to inject todos and specific action creation functions. There is a bit of confusion where
code 1 calls bindActionCreators but not in code 2. The effect of the two pieces of code is the same.
what is the purpose of bindActionCreators ?

Oct.29,2021

function bindActionCreator(actionCreator, dispatch) {
  return (...args) => dispatch(actionCreator(...args));
}

/*
 * @param actionCreators
 * @param dispatch
 * @return {actionKey: (...args) => dispatch(actionCreator(...args))}
 */
export default function bindActionCreators(actionCreators, dispatch) {
  return mapValues(actionCreators, actionCreator =>
    bindActionCreator(actionCreator, dispatch)
  );
}

bindActionCreators part of the source code, in which the dispatch method

is called.
MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1b30665-2b55b.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1b30665-2b55b.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?