diff --git a/content/docs/views-and-templates/inertia.md b/content/docs/views-and-templates/inertia.md index 8e4d27c..441a4ff 100644 --- a/content/docs/views-and-templates/inertia.md +++ b/content/docs/views-and-templates/inertia.md @@ -189,6 +189,7 @@ createInertiaApp({ ```ts // title: Svelte import { createInertiaApp } from '@inertiajs/svelte' +import { mount } from 'svelte' import { resolvePageComponent } from '@adonisjs/inertia/helpers' const appName = import.meta.env.VITE_APP_NAME || 'AdonisJS' @@ -206,7 +207,7 @@ createInertiaApp({ }, setup({ el, App, props }) { - new App({ target: el, props }) + mount(App, { target: el, props }) }, }) ```