Skip to content

Commit b7b5179

Browse files
committed
dedupe
1 parent 515d056 commit b7b5179

File tree

1 file changed

+0
-18
lines changed

1 file changed

+0
-18
lines changed

documentation/docs/98-reference/21-svelte-reactivity.md

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -4,22 +4,4 @@ title: svelte/reactivity
44

55
Svelte provides reactive versions of various built-ins like `SvelteMap`, `SvelteSet` and `SvelteURL`. These can be imported from `svelte/reactivity` and used just like their native counterparts.
66

7-
```svelte
8-
<script>
9-
import { SvelteURL } from 'svelte/reactivity';
10-
11-
const url = new SvelteURL('https://example.com/path');
12-
</script>
13-
14-
<!-- changes to these... -->
15-
<input bind:value={url.protocol} />
16-
<input bind:value={url.hostname} />
17-
<input bind:value={url.pathname} />
18-
19-
<hr />
20-
21-
<!-- will update `href` and vice versa -->
22-
<input bind:value={url.href} />
23-
```
24-
257
> MODULE: svelte/reactivity

0 commit comments

Comments
 (0)