Skip to content

Custom component with onclick handler #2237

Closed Answered by ealmloff
wackazong asked this question in Q&A
Discussion options

You must be logged in to vote

EventHandler takes a generic argument for the parameter to the function. If you want to take a function that accepts MouseEvent as an argument, you can use EventHandler<MouseEvent>

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@wackazong
Comment options

Answer selected by wackazong
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants