mirror of https://github.com/sveltejs/svelte
parent
4d11b5656e
commit
e13c7d9b22
@ -1,8 +1,8 @@
|
|||||||
export default function proxy(object) {
|
export default function proxy(object) {
|
||||||
return $state(object);
|
return $state(object);
|
||||||
}
|
}
|
||||||
export function createCounter() {
|
export function createCounter() {
|
||||||
let count = $state(0);
|
let count = $state(0);
|
||||||
count++;
|
count++;
|
||||||
}
|
}
|
||||||
export const proxy_in_arrow = object => $state(object);
|
export const proxy_in_arrow = (object) => $state(object);
|
||||||
|
Loading…
Reference in new issue