Nuxt is based on Vue.js and I find their building blocks to be much neater compared to the React based Next.js.
3 lines
123 B
TypeScript
3 lines
123 B
TypeScript
import type { Schedule } from "~/shared/types/schedule";
|
|
|
|
export const useSchedule = () => useState<Schedule>('schedule');
|