Yolk异步用户界面构建 JS 库
Yolk 是是构建异步用户界面的 JavaScript 库,基于 RxJS 和 Virtual DOM。
主要特性:
-
熟悉:Yolk 大小约为 11kb minified + gzipped,基于 Virtual DOM 和 RxJS。
-
一切都是可观察的
-
无状态
示例代码:
/** @jsx Yolk.createElement */ import Yolk from `yolk` function Counter () { // map all plus button click events to 1 const handlePlus = this.createEventHandler() const plusOne = handlePlus.map(() => 1) // map all minus button click events to -1 const handleMinus = this.createEventHandler() const minusOne = handleMinus.map(() => -1) // merge both event streams together and keep a running count of the result const count = plusOne.merge(minusOne).scan((x, y) => x + y, 0).startWith(0) return ( <div> <div> <button id="plus" onClick={handlePlus}>+</button> <button id="minus" onClick={handleMinus}>-</button> </div> <div> <span>Count: {count}</span> </div> </div> ) } Yolk.render(<Counter />, document.getElementById('container'))
评论
InfernoJavaScript 用户界面库
Inferno是个轻量级同构框架,可以构建高性能的用户界面。Inferno跟经典的虚拟DOM库(React,Mithril,Cycle和Om)不一样,不需要依赖不同的DOM虚拟元素,同时会从动态内容中
InfernoJavaScript 用户界面库
0
CascadeJavaScript 用户界面库
Cascade是一个 JavaScript/TypeScript库,用来创建流行的用户界面,组合Reactive视图模型和功能性的DOM组件实现无缝的数据流展示。在线演示:https://cascad
CascadeJavaScript 用户界面库
0
Jscex异步JS开发库
Jscex已改名为Wind.jsJscex是“JavaScriptComputationEXpression”的缩写,它为JavaScript语言提供了一个monadic扩展。Jscex完全使用Jav
Jscex异步JS开发库
0