is there any way to infer the parameters values of a function passed with props?
I am trying to create a like button that raises an event once the user clicks on it, the like component only call the function passes via props and i handle the click on the main component.
The problem is that in the like component i should pass the person object but i cant because i dont know about it, its passes as argument of the callback (onLike)