We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e7c091a commit a0d397bCopy full SHA for a0d397b
apps/svelte.dev/content/examples/12-svg/01-clock/+assets/App.svelte
@@ -4,7 +4,7 @@
4
let time = $state(new Date());
5
6
// these automatically update when `time`
7
- // changes, because of the `$:` prefix
+ // changes, because of the $derived
8
let hours = $derived(time.getHours());
9
let minutes = $derived(time.getMinutes());
10
let seconds = $derived(time.getSeconds());
0 commit comments