The object to observe.
Optional
options: { Options to configure the observable behavior.
The name of ReactiveProps object.
The observed object
const obj = reactiveProps({ a: 1, b: 2 });
obj.subscribe(() => {
console.log(obj.value);
});
obj.value.a = 3;
// output: { a: 3, b: 2 }
Creates a new ReactiveProps instance. An ReactiveProps is a reactive primitive that holds a value. Same as
reactiveProps
but returns a new ReactiveProps instance.