摘要: Let's we want to keep tracking how many times on element was click inside Machine model. We can use 'context' & 'assign' function. import { assign, cr 阅读全文
posted @ 2020-07-20 22:36 Zhentiw 阅读(192) 评论(0) 推荐(0)
摘要: Let's say we have a State Machine Model: import { createMachine, interpret } from "xstate"; const elBox = document.querySelector("#box"); const setPoi 阅读全文
posted @ 2020-07-20 22:25 Zhentiw 阅读(174) 评论(0) 推荐(0)