Embedding Svelte 5 inside PHP (Imperative component API)
I'm trying to use Svelte 5 and SvelteKit inside PHP. I don't understand how to use the Imperative component API (https://svelte.dev/docs/svelte/imperative-component-api). Where do I put the following code? Do I put it in src/routes/main.js? import { mount } from 'svelte';…