Skip to content

Commit

Permalink
Update 7.state-management.md
Browse files Browse the repository at this point in the history
- Removed additional variable example
  • Loading branch information
Tanvir-rahman committed Mar 15, 2024
1 parent 85166cc commit 67579e0
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion docs/1.getting-started/7.state-management.md
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,6 @@ const date = useLocaleDate(new Date('2016-10-26'))
By using [auto-imported composables](/docs/guide/directory-structure/composables) we can define global type-safe states and import them across the app.

```ts twoslash [composables/states.ts]
export const useCounter = () => useState<number>('counter', () => 0)
export const useColor = () => useState<string>('color', () => 'pink')
```

Expand Down

0 comments on commit 67579e0

Please sign in to comment.