高性能,純Clojurescript,聲明式DOM庫:freactive
freactive是一個高性能,純Clojurescript,聲明式DOM庫。它使用 hiccup 風格的語法和Clojurer內置deref和atom模式。它受 reagent, om 和 reflex 啟發(和作者開發桌面GUI框架 QML, JavaFX 和 WPF 的經驗)。 See it in action!
目標:
- Provide a simple, intuitive API that should be almost obvious to those familiar with Clojure (inspiration from reagent)
- Allow for high-performance rendering good enough for animated graphics based on a purely declarative syntax
- Allow for reactive binding of any attribute, style property or child node
- Allow for coordinated management of state via cursors (inspiration from om)
- Provide deeply-integrated animation support
- Allow for cursors based on paths as well as lenses
- Provide a generic items view component for efficient viewing of large data sets
- Minimize unnecessary triggering of update events
- Coordinate all updates via requestAnimationFrame wherever possible
- Be easy to debug
- Be written in pure Clojurescript
- Provide support for older browsers via polyfills (not yet implemented)
本文由用戶 jopen 自行上傳分享,僅供網友學習交流。所有權歸原作者,若您的權利被侵害,請聯系管理員。
轉載本站原創文章,請注明出處,并保留原始鏈接、圖片水印。
本站是一個以用戶分享為主的開源技術平臺,歡迎各類分享!