I appreciate any scenario to avoid $effect. I'm still scarred from using it in React.
Use bind:this on an html element to bind a dom element to an object property. I use this solution for my rich text editor built with Svelte and it allows me to replace an $effect. Tightly link the dom element to my tree so that I can easily move the cursor to it after updating with tick(). #svelte
0 reposts0 likes