Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

code example in README.md: closing bracket must be removed #426

Closed
gluecksmensch opened this issue Apr 6, 2021 · 0 comments
Closed

code example in README.md: closing bracket must be removed #426

gluecksmensch opened this issue Apr 6, 2021 · 0 comments

Comments

@gluecksmensch
Copy link

There is a closing bracket at the end of the Usage example in the README.md:

import { useMouse, usePreferredDark, useLocalStorage } from '@vueuse/core'

export default {
  setup() {
    // tracks mouse position
    const { x, y } = useMouse()

    // is user prefers dark theme
    const isDark = usePreferredDark()

    // persist state in localStorage
    const store = useLocalStorage(
      'my-storage', 
      {
        name: 'Apple',
        color: 'red',
      },
    )

    return { x, y, isDark, store }
  }
}) // <-- bracket needs to be removed
wheatjs added a commit that referenced this issue Apr 8, 2021
@antfu antfu closed this as completed in 3d720c0 Apr 8, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant