useHost
Hook that creates a reference that curren is the instance of the webcomponent.
Syntax
Returns the instance of the webcomponent in reference format, this reference allows to extend behaviors when creating customHooks.
Example
From the example we can highlight that useListener is a customHook that allows listening to an event from the webcomponent without the need to link said event to the VirtualDOM.
Last updated