mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-30 01:17:16 +00:00
docs: fix example consistency (#2451)
This commit is contained in:
parent
daec4323bb
commit
d98fe1207e
@ -25,7 +25,7 @@ import { useState } from '#app'
|
|||||||
|
|
||||||
// It will be available as useFoo() (pascalCase of file name without extension)
|
// It will be available as useFoo() (pascalCase of file name without extension)
|
||||||
export default function () {
|
export default function () {
|
||||||
return 'bar'
|
return useState('foo', () => 'bar')
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user