Nuxt/examples/advanced/config-extends/base/composables/foo.ts

4 lines
90 B
TypeScript
Raw Permalink Normal View History

import { useState } from '#app'
export const useFoo = () => useState('foo', () => 'foo')