Wraps an existing HTMLElement with a new Component instance. If the HTMLElement already has an associated Component, that instance is returned. Otherwise, a new Component is created to manage the existing DOM element.
Component
The HTMLElement to wrap.
A Component instance managing the provided HTMLElement.
Wraps an existing HTMLElement with a new Component instance. If the HTMLElement already has an associated Component, that instance is returned. Otherwise, a new
Componentis created to manage the existing DOM element.