Reword the note

pull/11522/head
Puru Vijay 2 years ago committed by GitHub
parent ab403e92f9
commit 786335df09
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -151,7 +151,7 @@ export function createCounter() {
</button>
```
> Runes can only be used in `.svelte.js` and `.svelte.ts` files.
> Runes can only be used in `.svelte.js`, `.svelte.ts` outside of `.svelte` files.
Note that we're using a [get property](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Functions/get) in the returned object, so that `counter.count` always refers to the current value rather than the value at the time the function was called.

Loading…
Cancel
Save