mirror of https://github.com/sveltejs/svelte
parent
5f8988ad73
commit
5ff4932373
@ -1,7 +1,5 @@
|
||||
<script>
|
||||
import { proxy } from 'svelte';
|
||||
|
||||
const object = proxy({ count: 0 });
|
||||
const object = $state({ count: 0 });
|
||||
</script>
|
||||
|
||||
<button onclick={() => object.count += 1}>
|
Loading…
Reference in new issue