🏇Mounting a Component
A component instance won't render until its .mount()
method has been called.
Arguments
Name | Type | Description |
---|---|---|
Element | DOM element or a selector string | The container element that the component will be mounted to. |
If no element is provided the component will be mounted to the <script>
elements parent element. This can be useful if you could like to encapsulate your code embeds within your UI components.
Example
Last updated