the-road-to-learn-react / use-custom-element

Custom hook to bridge Custom Elements (Web Components) to React.
https://www.robinwieruch.de
MIT License
91 stars 7 forks source link

Why the first argument in the event handler is a customEvent.detail instead of a customEvent? #8

Open GRSGreck opened 5 years ago

GRSGreck commented 5 years ago

Hi! Would you explain to me your idea, please? Why the first argument in the event handler is a customEvent.detail instead of a customEvent? This solution a little bit confusing me.

See the link to the source code

timbakkum commented 2 years ago

Hey, I'm interested in the answer as well. Is this still maintained?