Calling a function in React

Viewed 74059

I'm a beginner in React, and I'm a little confused about calling a function in React.

I saw the following ways and I don't know when to use each and which one.

  • handleAddTodo ={this.handleAddTodo}
  • handleAddTodo ={this.handleAddTodo()}
  • handleAddTodo ={handleAddTodo}
  • handleAddTodo ={this.handleAddTodo}
  • handleAddTodo ={handleAddTodo()}

Are these interchangeable? Could I do that to handle an event, the same way to call a function?

6 Answers
Related