Well, I have a react component in REACT JS which would be perfect for reusing. But it is working with 'onDoubleClick' event listener currently. I would like to reuse it with a simple 'onClick' event listener (without I clone this comp). Which event listener should be called depends on where the component is in the application. More precisely, the choice of event listener is depending on the parents of the component.
Any idea, how can I do that? ...or I have to clone the original comp? :)
Thanks in advance for your help