语言 & 框架
XState
NOT ON THE CURRENT EDITION
This blip is not on the current edition of the Radar. If it was on one of the last few editions it is likely that it is still relevant. If the blip is older it might no longer be relevant and our assessment might be different today. Unfortunately, we simply don't have the bandwidth to continuously review blips from previous editions of the RadarUnderstand more
Published: May 19, 2020
Last Updated: Oct 28, 2020
Oct 2020
试验
May 2020
评估
我们在之前的技术雷达中收录了几个状态管理库,但是 XState 采用的方法略有不同。这是一个简单的 JavaScript 和 TypeScript 框架,用于创建有限状态机并将其可视化为状态图。它与一些流行的响应式 JavaScript 框架 (Vue.js , Ember.js , React.js 和 RxJS) 集成,并且是基于W3C标准的有限状态机。另一个值得注意的功能是状态机定义的序列化。我们发现有一点很有用,那就是在其他上下文中创建有限状态机(特别是在编写游戏逻辑)时,可视化状态及其可能的转换的能力。 我们确实很喜欢Xstate的visualizer可以很容易做到这一点。