원클릭으로
vani-incremental-mount
Mount Vani components inside existing apps or DOM islands
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
메뉴
Mount Vani components inside existing apps or DOM islands
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
SOC 직업 분류 기준
Create a tiny global store with explicit subscriptions
Updates Vani SPA app UI in src/spa-app, especially the landing page/homepage and landing examples. Use when the user mentions Vani SPA app, src/spa-app, landing page/homepage, or landing examples.
Build scalable lists with keyed rows and per-item updates
Schedule explicit updates with microtasks and transitions
Create a minimal Vani SPA root with explicit updates
Implement SSR, hydration, and selective activation with Vani
| name | vani-incremental-mount |
| description | Mount Vani components inside existing apps or DOM islands |
Instructions for embedding Vani components into existing applications via mount points.
Use this when adding a Vani widget inside a non-Vani app or server-rendered page.
renderToDOM(Widget(), mountNode) (arrays also work) and store the returned handles.handle.dispose() for each handle.#app)Widget)onUnmount)Example 1 usage pattern:
Embed a Vani counter inside a React or server-rendered page using a div mount node.
Example 2 usage pattern:
Create multiple independent widgets with separate mount points and dispose them on teardown.
Example output:
Created: src/widget.ts
Updated: src/host-integration.ts
Notes: Handles are disposed when the host unmounts.
Explain the mount point, how handles are stored and disposed, and list file changes.