Properties > Targets

Use

By default the updaters use the current property value when updating the DOM. If you supply a use function then the result of the function will be used instead:

...
use: (value, el) => {
// `value` is the current property value
// `el` is a reference to the component itself

// return a computed value to use in the updaters
return value * value;
}
...
Next: Triggers Previous: DOM