Continue with Passing Method reference between components article.
There are two ways:
- Bind method
- Arrow function
I have demonstrated both the approaches in App.js file. I am using bind method with button click and arrow function with paragraph click. But this combination is not necessary. You can do vice-versa as well.
We do not need to modify Person.js Component.

Modify App.js as per following code

bind(this, listOfArguments): list of arguments to be passed in the function.

