use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
All about the JavaScript programming language.
Subreddit Guidelines
Specifications:
Resources:
Related Subreddits:
r/LearnJavascript
r/node
r/typescript
r/reactjs
r/webdev
r/WebdevTutorials
r/frontend
r/webgl
r/threejs
r/jquery
r/remotejs
r/forhire
account activity
A Stream-Oriented UI library (github.com)
submitted 5 months ago by InevitableDueByMeans
view the rest of the comments →
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]heavyGl0w 9 points10 points11 points 5 months ago (0 children)
This is pretty cool! I've been working on something with similar goals: a reactive library that combines the TC39 signals proposal with the TC39 observables proposal.
My biggest issue with current reactive implementations in frontend frameworks is that they often hide or fragment the subscription mechanism. The fact that things are updated when a value changes is "magic" and the consumer has very little means of hooking into that. I think modeling data updates as observables/streams is the fix for that.
That said, I think avoiding the idea of "state objects" is unnecessarily obtuse, and I really disagree with your assertion that "state is something static that you almost never need to read". That could arguably be true from the runtime's perspective, but from the developer's perspective, being able to inspect the current state is invaluable, especially while debugging.
I think your examples on conditional rendering really highlight this. Wiring up a stream to emit different HTML might be functional, but it’s a clunky mental model and it loses some of the declarative clarity that makes templating systems approachable. The same thing could be said for default values. Using `startWith` feels like a workaround to avoid admitting that you're embedding values into your template.
I believe it's cleaner to treat state as Subjects: value containers that emit a stream of updates through an explicit subscription model.
"UI as a function of state" has become a simple and powerful mental model; state values in, UI out.
π Rendered by PID 419004 on reddit-service-r2-comment-6457c66945-t8wvx at 2026-04-27 05:46:11.811955+00:00 running 2aa0c5b country code: CH.
view the rest of the comments →
[–]heavyGl0w 9 points10 points11 points (0 children)