Skip to content
This repository has been archived by the owner on Nov 10, 2020. It is now read-only.

Add OnClick to function definition #18

Closed

Conversation

karismatic-megafauna
Copy link

Not sure if I typescripted correctly, but it would be nice to be able to use a click handler on a component defined via this lib.

Awesome work by the way!

Not sure how typescript works, is that the correct way of declaring a
definition?
@nachoaIvarez
Copy link
Owner

nachoaIvarez commented Dec 25, 2016

You can already do this! onClick, and any other prop gets passed to the result component, look: Line 40 and Line 78

Thank you for taking the time to submit the PR 😄

@karismatic-megafauna
Copy link
Author

Ah, completely missed that! Thank you for pointing that out :)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants