docs: fix example consistency (#2451)

This commit is contained in:
Raku Zeta 2021-12-20 18:36:25 +08:00 committed by GitHub
parent daec4323bb
commit d98fe1207e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -25,7 +25,7 @@ import { useState } from '#app'
// It will be available as useFoo() (pascalCase of file name without extension)
export default function () {
return 'bar'
return useState('foo', () => 'bar')
}
```