Example of Using `subscriptionRef` with UI Interaction in Effect Typescript

also, are there any examples of using subscriptionRef with UI interaction? lets say a simple vanilla reactive program where an html input change evnet interacts with the subscriptionRef somehow, and then there is some place it doubles the number, and writes it back to a text node. I can easily make this by just running runSync(the doubleing effect) or whatnot every time there's a change, but what would be the way to do it without using runsync every time you want a change to happen? I would imagine there's some way of running the program once and hooking in the subscription ref and its output in some way. Just looking for a really simple example that would allow me to scale
Was this page helpful?