UNPKG

rvx

Version:

A signal based rendering library

7 lines 283 B
import { $, watchUpdates } from "../core/signals.js"; export function reflect(target, key) { const prop = $(watchUpdates(() => target[key], value => prop.value = value)); watchUpdates(prop, value => target[key] = value); return prop; } //# sourceMappingURL=reflect.js.map