Skip to content

生态系统

在开发 VueUse 的过程中,我们将使用的工具提取到可以独立使用的单独项目中。

vue-chemistry

Vue Chemistry 利用 reactify 函数并将其应用于常见的 JavaScript API,实现纯响应式编程体验。例如:

js
import * as console from 'vue-chemistry/console'
import { set } from 'vue-chemistry/core'
import { sum } from 'vue-chemistry/math'

const a = ref(1)
const b = ref(2)

const c = sum(a, b) // c = a + b = 3

set(a, 2) // a.value = 2 的简写

console.log(c) // 输出 4 (2 + 2)!

Released under the MIT License.