armin:React的声明式状态机!

时间:2021-05-16 10:21:19
【文件属性】:
文件名称:armin:React的声明式状态机!
文件大小:103KB
文件格式:ZIP
更新时间:2021-05-16 10:21:19
react flux state-machine store react-context React的声明式状态机! React Component状态是一种管理组件内部状态的强大方法,但是我们还能做更多吗? 我们是否可以同时创建和维护更具可读性,自我解释性和强大性的状态? 快速范例 import { createMachine } from "armin" const ViewToggler = createMachine ( { allStates : [ "visible" , "hidden" ] , state : "visible" , reducers : { hide : { from : [ "visible" ] , setState : ( ) => "hidden" } , show : { from : [ "hidden" ] , setState : ( )
【文件预览】:
armin-master
----.gitignore(920B)
----.babelrc(666B)
----.eslintrc(953B)
----package.json(3KB)
----package-lock.json(422KB)
----src()
--------core()
--------armin.js(196B)
----LICENSE(1KB)
----.github()
--------armin_logo.png(6KB)
----rollup.config.js(379B)
----__tests__()
--------index.js(195B)
----README.md(8KB)
----example()
--------counter.js(2KB)
--------.babelrc(270B)
--------index.html(531B)
--------simple.js(3KB)
--------helper.js(24B)
--------todos.js(3KB)

网友评论