Mount a Svelte component to a DOM element.
npm i svelte-mounter
Ensure you already have svelte and webpack:
npm i svelte
npm i svelte-loader
npm i webpack
See the webpack settings here.
Create a mount point in your HTML:
<div id="js-svelte-mount"></div>
Mount a Svelte component:
import mount from "svelte-mounter";
import MyComponent from "./MyComponent.svelte";
mount(MyComponent, "js-svelte-mount");