Browse documentation

mount

Starts a Valyrian.js application on a DOM target.

Table of contents

Category

Value

Import

js
import { mount } from "valyrian.js";

Public signature

ts
mount(dom: string | DomElement, component: ValyrianComponent | VnodeComponentInterface | any): string

Environment result

In the browser, mount patches the selected DOM target and returns "". In Node, mount renders against the server DOM adapter and returns the generated HTML string.