mirror of https://github.com/sveltejs/svelte
parent
03ea36af2b
commit
769a7bc11a
@ -0,0 +1,6 @@
|
||||
<svelte:options runes={false} />
|
||||
<script>
|
||||
export let count = 99;
|
||||
</script>
|
||||
|
||||
<p class="explicit-legacy">{count}</p>
|
||||
@ -0,0 +1,6 @@
|
||||
<svelte:options runes={true} />
|
||||
<script>
|
||||
let count = $state(42);
|
||||
</script>
|
||||
|
||||
<p class="explicit-runes">{count}</p>
|
||||
@ -1,5 +1,10 @@
|
||||
<script>
|
||||
import ExplicitRunes from './ExplicitRunes.svelte';
|
||||
import ExplicitLegacy from './ExplicitLegacy.svelte';
|
||||
|
||||
let count = $state(1);
|
||||
</script>
|
||||
|
||||
<p>{count}</p>
|
||||
<ExplicitRunes />
|
||||
<ExplicitLegacy />
|
||||
|
||||
Loading…
Reference in new issue