Skip to content

Commit

Permalink
docs: update
Browse files Browse the repository at this point in the history
  • Loading branch information
2nthony committed Sep 28, 2021
1 parent 88a9246 commit 7816cb4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/core/useEventListener/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ Use EventListener with ease. Register using [addEventListener](https://developer

```html
<script>
import { writable } from '@svelte-use/store'
import { useEventListener } from '@svelte-use/core'
useEventListener(document, 'visibilitychange', (evt) => {
Expand All @@ -23,6 +22,7 @@ You can also pass a `writable/readable` as the event target, `useEventListener`

```js
<script>
import { writable } from '@svelte-use/store'
import { useEventListener } from '@svelte-use/core'

const el = writable()
Expand Down

0 comments on commit 7816cb4

Please sign in to comment.