vue-lynx/vapor / createApp

Function: createApp()

function createApp(rootComponent, rootProps?): VueLynxApp

Create a Vapor-mode Vue Lynx application.

Like vue-lynx's createApp, there is no container selector — mount() always mounts onto the Lynx page root.

Parameters

ParameterType
rootComponentComponent
rootProps?Record<string, unknown>

Returns

VueLynxApp

Example

import { createVaporApp } from 'vue-lynx';
import App from './App.vue'; // <script setup vapor>

createVaporApp(App).mount();

Defined in

packages/vue-lynx/runtime/src/vapor/index.ts:386