1 个仓库
Constructing user interfaces by composing functions that return DOM elements.
Distinct from Function Composition: Focuses on the layout and UI structural composition rather than general functional logic merging.
Explore 1 awesome GitHub repository matching software engineering & architecture · UI Component Composition. Refine with filters or upvote what's useful.
Van 是一个响应式 JavaScript UI 框架,专为构建具有状态绑定和自动 DOM 更新功能的用户界面而设计,且无需虚拟 DOM。它是一个无需构建步骤的前端框架,允许使用直接在浏览器中运行的标准 JavaScript 函数来创建响应式应用。 该框架包含一个响应式状态管理器,利用基于代理(proxy)的对象来追踪依赖关系并触发针对性的 UI 更新。它提供了一个用于生成静态 HTML 的服务端渲染工具,以及相应的客户端水合(hydration)过程以实现交互。对于多视图应用,它还内置了客户端路由器来管理导航和状态转换。 该项目涵盖了广泛的功能,包括声明式 DOM 组合、状态到属性的绑定以及响应式列表渲染。它通过派生状态对象、批量更新和状态序列化支持高级状态管理。此外,该框架还支持 SVG 和 MathML 元素的生成。 开发环境通过 TypeScript 集成支持静态类型检查和自动补全。
Uses standard JavaScript functions to declaratively compose the user interface without a compilation step.