Check out How to pass anonymous arrow functions ReactJS by JR. Here is an excerpt:
You define the callback like this
You pass it using the arrow functions like this
You set it’s parameter values like this:
You pass it to other components and functions like this
And you add it to your controls like this
Filed under: reactjs
The full article is available here.