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/runtime/samples/reactive-value-function/main.svelte

15 lines
156 B

<script>
let foo = () => 1;
function bar() {
return 2;
}
export function update() {
foo = () => 3;
bar = () => 4;
}
</script>
{foo()}-{bar()}