mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-29 17:07:22 +00:00
24 lines
291 B
TypeScript
24 lines
291 B
TypeScript
|
import { useState } from '#app'
|
||
|
|
||
|
export function useA () {
|
||
|
return 'a'
|
||
|
}
|
||
|
|
||
|
function useB () {
|
||
|
return 'b'
|
||
|
}
|
||
|
|
||
|
function _useC () {
|
||
|
return 'c'
|
||
|
}
|
||
|
|
||
|
export const useD = () => {
|
||
|
return 'd'
|
||
|
}
|
||
|
|
||
|
export { useB, _useC as useC }
|
||
|
|
||
|
export default function () {
|
||
|
return useState('foo', () => 'bar')
|
||
|
}
|