mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-26 07:32:01 +00:00
docs: fix typo (#2769)
This commit is contained in:
parent
4bd7adae4a
commit
23b230b34b
@ -23,7 +23,7 @@ Example: (using default export)
|
|||||||
```js [composables/use-foo.ts or composables/useFoo.ts]
|
```js [composables/use-foo.ts or composables/useFoo.ts]
|
||||||
import { useState } from '#app'
|
import { useState } from '#app'
|
||||||
|
|
||||||
// It will be available as useFoo() (pascalCase of file name without extension)
|
// It will be available as useFoo() (camelCase of file name without extension)
|
||||||
export default function () {
|
export default function () {
|
||||||
return useState('foo', () => 'bar')
|
return useState('foo', () => 'bar')
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user