エコシステム
VueUseの開発中、私たちは使用しているツールを、時々スタンドアロンで使用できる個別プロジェクトに抽出しました。
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) // shorthand for a.value = 2
console.log(c) // it's 4 (2 + 2)!