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.
svelte/test/sourcemaps/samples/script-and-style/input.svelte

20 lines
288 B

<script>
import { onMount } from 'svelte';
let count = 0;
onMount(() => {
const id = setInterval(() => count++, 1000);
return () => clearInterval(id);
});
</script>
<style>
h1 {
color: orange;
}
</style>
<h1>Hello world!</h1>
<div>Counter value: {count}</div>