@subwaytime/waku
v1.0.5
Published
Vue 3 Component DOM Mounting
Maintainers
Readme
Features
• 🤏 Tiny - Only 3.8KB min
• 💚 Native Vue 3
• ⚡ Fast & Simple - no config required!
• 🔥 Hot-Module Reloading for vite
• 🫒 Usable outside of setup lifecycle
• 🌊 Support for defineComponent, defineAsyncComponent, h and more!
Usage
Install
# bun
bun i @subwaytime/waku
# npm
npm i @subwaytime/waku
# pnpm
pnpm i @subwaytime/wakuAdd it to main.js
import { createApp } from 'vue';
import { createWaku } from '@subwaytime/waku';
import App from './App.vue';
const app = createApp(App);
app.use(createWaku());
app.mount('#app');WakuMountPoint is injected automatically on mount. To place it yourself instead, use createWaku({ autoMount: false }) and add <WakuMountPoint /> to your mount component.
Getting Started
import { mountComponent } from '@subwaytime/waku';
import component from 'component.vue';
const { id, vNode, el, destroy } = mountComponent(component);Documentation
For the full documentation, visit subwaytime-waku.netlify.app For NPM, visit npmjs.com/package/@subwaytime/waku
License
MIT License © 2021-PRESENT Leon Langer
