mirror of
https://github.com/nuxt/nuxt.git
synced 2025-01-18 17:35:57 +00:00
docs: fix typo in the composables example (#1345)
This commit is contained in:
parent
a8cc233b2a
commit
e72c46ef47
@ -14,7 +14,7 @@ Example: (using named exports)
|
|||||||
```js [composables/useFoo.ts]
|
```js [composables/useFoo.ts]
|
||||||
import { useState } from '#app'
|
import { useState } from '#app'
|
||||||
|
|
||||||
export const useFoo () {
|
export const useFoo = () => {
|
||||||
return useState('foo', () => 'bar')
|
return useState('foo', () => 'bar')
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
Loading…
Reference in New Issue
Block a user