Binding to component onClick
Hi, I am trying to bind to the
I understand this is doable for a regular HTML element such as a
e.g.
onClick property of a custom component. I understand this is doable for a regular HTML element such as a
button but how can I achieve the same for a custom component?e.g.
<CustomImage onClick={handleMouseClick} /> ?