When calling the useElementInst(), you will have as return another function that must be inserted the tag of the element in the template.
This function has a “key” property that bemtv automatically accesses when the template is defined as a TemplateStringsArray.
When calling the function, you will get an instance as return that facilitates the management of the DOM element.
The function should only be called on callbacks that the component can handle, so that it returns a handling instance of the element correctly even if the component is used multiple times:
useFirstElManager()
This function directly accesses the first element of the component and returns an instance to manage it:
This function should only be called on callbacks that the component can handle, so that it returns a handling instance of the element correctly even if the component is used multiple times:
createElManager()
This function creates an instance to manage the element from a selector or element: