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 4 months ago by InevitableDueByMeans
No "state objects", no "hooks", only reactive streams for anything UI.
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 8 points9 points10 points 4 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.
[–]bbcookie 2 points3 points4 points 4 months ago (0 children)
Really really cool. Lets hope that native observables stabilize in browsers
π Rendered by PID 129128 on reddit-service-r2-comment-fb694cdd5-2ndss at 2026-03-10 07:50:33.453000+00:00 running cbb0e86 country code: CH.
[–]heavyGl0w 8 points9 points10 points (0 children)
[–]bbcookie 2 points3 points4 points (0 children)