🏇Mounting a Component

A component instance won't render until its .mount() method has been called.

Arguments

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

<script>
  $app.createComponent('my_component', myComponentStore).mount('#myComponent');
</script>

Last updated