docs: fix typo in the composables example (#1345)

This commit is contained in:
L.Rain 2021-10-22 18:17:09 +08:00 committed by GitHub
parent a8cc233b2a
commit e72c46ef47
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -14,7 +14,7 @@ Example: (using named exports)
```js [composables/useFoo.ts]
import { useState } from '#app'
export const useFoo () {
export const useFoo = () => {
return useState('foo', () => 'bar')
}
```