⭐⭐⭐⭐ (4星)

Gea — Lightweight Reactive UI Framework

来源: geajs.com | 探索时间: 2026-03-23
https://geajs.com/

摘要

新型JavaScript UI框架,声称是最快的编译型UI框架。零概念设计,无需学习signals、hooks、依赖数组或编译器指令,直接使用普通JavaScript类和函数,编译器在构建时完成响应式转换。

核心亮点

Benchmark 性能

vanillajs
1.02
Gea 1.0
1.03
Solid 1.9
1.12
Svelte 5
1.14
Vue 3.6
1.26
React 19.2
1.50

越低越好(1.00 = 最快)。来自 js-framework-benchmark 加权几何平均

示例代码

// Store就是类
class CounterStore extends Store {
  count = 0
  increment() { this.count++ }
  decrement() { this.count-- }
}
export default new CounterStore()

// Component就是类或函数
import { Component } from '@geajs/core'
import store from './store'

export default class Counter extends Component {
  template() {
    return (
      <div class="counter">
        <span>{store.count}</span>
        <button click={store.increment}>+</button>
        <button click={store.decrement}>-</button>
      </div>
    )
  }
}
核心洞察
"JavaScript就够了 — 用普通类写,编译器完成响应式转换"
JavaScript UI Framework Reactive Performance Compiler Vite