The element to associate with the hook.
The list of hook callbacks, such as mounted, updated, destroyed, etc.
Note: createHook must be called from the connectedCallback lifecycle
which is triggered after the element has been added to the DOM. If you try
to call createHook from the constructor, an error will be logged.
Furthermore, you can only start using the hook's APIs after the mounted
callback of the hook has been called. If you try to call them earlier,
an error will be logged.
Returns the Hook instance for the custom element.
Creates a hook instance for the given element and callbacks.