mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-29 09:02:03 +00:00
docs: removed unused composable example (#26283)
This commit is contained in:
parent
81933dfc3d
commit
5804d397ad
@ -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')
|
||||||
```
|
```
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user