Search
Star
Feedback
Setup for Free
ยฉ 2026 Hedgehog Software, LLC
Twitter
GitHub
Discord
System
Light
Dark
More
Communities
Docs
About
Terms
Privacy
Binding to component onClick - SolidJS
S
SolidJS
โข
2y ago
โข
5 replies
GirlRacer
Binding to component onClick
Hi
, I am trying to bind to the
onClick
onClick
property of a custom component
.
I understand this is doable for a regular HTML element such as a
button
button
but how can I achieve the same for a custom component
?
e
.g
.
<CustomImage onClick={handleMouseClick} />
<CustomImage onClick={handleMouseClick} />
?
SolidJS
Join
Solid is a declarative reactive Javascript library for creating user interfaces.
12,274
Members
View on Discord
Resources
ModelContextProtocol
ModelContextProtocol
MCP Server
Recent Announcements
Similar Threads
Was this page helpful?
Yes
No
Similar Threads
onClick preventDefault/stopPropagation not working
S
SolidJS / support
6mo ago