guide: update docs for <svelte:body>

pull/1970/head
Conduitry 6 years ago
parent f8d69e296f
commit a035676ef0

@ -114,11 +114,9 @@ You can also bind to certain values — so far `innerWidth`, `outerWidth`, `inne
```
### `<svelte:document>`
### `<svelte:body>`
TODO REPLACE THIS WITH svelte:body
The `<svelte:document>` tag, just like `<svelte:window>`, gives you a convenient way to declaratively add event listeners to the `document` object. This is useful for listening to events that don't fire on `window`, such as `mouseenter` and `mouseleave`.
The `<svelte:body>` tag, just like `<svelte:window>`, gives you a convenient way to declaratively add event listeners to the `document.body` object. This is useful for listening to events that don't fire on `window`, such as `mouseenter` and `mouseleave`.
### `<svelte:head>`

Loading…
Cancel
Save