Skip to content

Commit

Permalink
docs: fix typos in useState (nuxt#1962)
Browse files Browse the repository at this point in the history
  • Loading branch information
DamianGlowala authored Nov 16, 2021
1 parent 1c8b751 commit 5f5eb39
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/content/3.docs/1.usage/2.state.md
Original file line number Diff line number Diff line change
Expand Up @@ -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')
Expand Down

0 comments on commit 5f5eb39

Please sign in to comment.