docs: fix typos in useState (#1962)

This commit is contained in:
Damian 2021-11-16 13:15:05 +01:00 committed by GitHub
parent 1c8b751cfa
commit 5f5eb39ae4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -29,7 +29,7 @@ const state = useState<T>(key: string, init?: () => T): Ref<T>
## Shared State
Using [auto imported composables](/docs/directory-structure/composables) we can define global typesafe states.
Using [auto-imported composables](/docs/directory-structure/composables) we can define global type-safe states.
```ts [composables/states.ts]
export const useColor = () => useState<string>('color', () => 'pink')