项目
在 GitHub 查看
steveruizok/state-designer
关于
使用状态图进行状态管理。
网站与应用开发可以做什么
- Write state-charts in a simple declarative syntax.
- Create both global and local component states.
- Use selectors to subscribe to just the data you need.
实测星标增长
- 24小时
- +1
- 7天
- +1
- 15天
- +1
- 1个月
- 正在收集历史
各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。
README.md
原文State Designer
State Designer is a JavaScript and TypeScript library for managing the state of a user interface. It prioritizes the design experience, making it easy to experiment with ideas, iterate on solutions, and communicate the final result.
- See examples in React and TypeScript.
- Learn more at state-designer.com.
Features
- Write state-charts in a simple declarative syntax.
- Create both global and local component states.
- Use selectors to subscribe to just the data you need.
Packages
@state-designer/core- Core library.@state-designer/react- React hook.
Usage
Using State Designer involves three steps:
- Create a state with a configuration object.
- Subscribe to the state's updates.
- Send events to the state.
Your exact usage will depend on your framework:
Inspiration
State Designer is heavily inspired by xstate. Note that, unlike xstate, State Designer does not adhere to the scxml spec.
Author
License
探索相关项目
加载中…