vani-incremental-mount
Installation
SKILL.md
Incremental Mounting
Instructions for embedding Vani components into existing applications via mount points.
When to Use
Use this when adding a Vani widget inside a non-Vani app or server-rendered page.
Steps
- Create a Vani component with explicit updates.
- Find or create a DOM mount node inside the host app.
- Call
renderToDOM(Widget(), mountNode)(arrays also work) and store the returned handles. - On host unmount/cleanup, call
handle.dispose()for each handle.