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

4 lines
90 B
TypeScript
Raw Normal View History

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