摘要: import { createMachine } from "@zag-js/core"; type MachineState = { value: "idle" | "focused"; }; type MachineContext = { value: string[]; focusedInde 阅读全文
posted @ 2023-02-19 03:25 Zhentiw 阅读(26) 评论(0) 推荐(0) 编辑
摘要: Idea is put component props inside hook, and return from hook, that's way to keep component clean and simple Hook: import { MachineOptions } from "./m 阅读全文
posted @ 2023-02-19 03:23 Zhentiw 阅读(17) 评论(0) 推荐(0) 编辑