SolidJSS
SolidJSโ€ข2y agoโ€ข
5 replies
GirlRacer

Binding to component onClick

Hi, I am trying to bind to the 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} /> ?
Was this page helpful?