docs: correct toggle function in lifecycle hooks example

pull/15486/head
fuki_fuki 1 year ago
parent e2bbc560e4
commit d518274eab

@ -147,7 +147,7 @@ With runes, we can use `$effect.pre`, which behaves the same as `$effect` but ru
}
function toggle() {
toggleValue = !toggleValue;
theme = theme === 'dark' ? 'light' : 'dark';
}
</script>

Loading…
Cancel
Save