1 8. Custom Handlers
~coolelectronics edited this page 2024-03-10 13:54:05 -04:00

Custom handlers

The handle function takes in a reference pointer returned by use and a closure, which it will call once immediately, and then every time after that when the data updates.

handle(use(this.text), () => {
	console.log("new value of this.text: ", this.text);
});
return <input bind:value={use(this.text)}/>