docs: removed unused composable example (#26283)

This commit is contained in:
Tanvir Rahman 2024-03-16 00:18:35 +06:00 committed by GitHub
parent 81933dfc3d
commit 5804d397ad
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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. 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] ```ts twoslash [composables/states.ts]
export const useCounter = () => useState<number>('counter', () => 0)
export const useColor = () => useState<string>('color', () => 'pink') export const useColor = () => useState<string>('color', () => 'pink')
``` ```