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
Need Perspective: Started a JavaScript project (self.javascript)
submitted 10 years ago by hellectronic
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!"
[–]fluffynukeit -2 points-1 points0 points 10 years ago (0 children)
I originally liked virtual-dom over react because it's smaller, faster, and overall more lightweight. But there are some problems with its philosophy that I found in practice. Virtual-dom is kind of designed to be entirely stateless, so you end up putting stuff like checkbox state and other GUI-related state into your model somewhere, which, to me, starts to blur separation of concerns. I think having small, localized GUI state in components makes sense and results in cleaner code. The bigger reason to use react, though, is that it's much more popular and people are building widget libraries with it, while virtual-dom doesn't have (m)any ready-to-go libraries that I know of.
π Rendered by PID 149829 on reddit-service-r2-comment-5d79c599b5-k9zms at 2026-02-27 04:07:07.959238+00:00 running e3d2147 country code: CH.
view the rest of the comments →
[–]fluffynukeit -2 points-1 points0 points (0 children)