How to bind a function to react component?

In react, there are several ways to bind the function to react components. Let’s go through each of them and see which one is suitable for you.

  1. Binding inside the constructor

2. Binding insider the render function