mirror of https://github.com/sveltejs/svelte
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
26 lines
649 B
26 lines
649 B
11 months ago
|
<!doctype html>
|
||
|
<html lang="en">
|
||
|
<head>
|
||
2 months ago
|
<meta charset="utf-8" />
|
||
4 months ago
|
<link rel="icon" href="/favicon.png" />
|
||
11 months ago
|
<link href="/demo.css" rel="stylesheet" />
|
||
|
<!--ssr-head-->
|
||
|
</head>
|
||
|
<body>
|
||
|
<noscript>You need to enable JavaScript to run this app.</noscript>
|
||
3 months ago
|
<div id="root"><!--ssr-body--></div>
|
||
3 months ago
|
|
||
|
<script type="module">
|
||
|
import { mount, hydrate, unmount } from 'svelte';
|
||
|
import App from '/src/main.svelte';
|
||
|
|
||
|
const root = document.getElementById('root');
|
||
|
const render = root.firstChild?.nextSibling ? hydrate : mount;
|
||
|
|
||
|
const component = render(App, {
|
||
|
target: document.getElementById('root')
|
||
|
});
|
||
|
</script>
|
||
11 months ago
|
</body>
|
||
|
</html>
|