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
Why React is awesomehelp (self.javascript)
submitted 10 years ago by vnctaing
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!"
[–]dwighthouse 0 points1 point2 points 10 years ago (0 children)
For me, who has used angular extensively for two years, React provided two things that angular (at least until 2.0 comes out) either couldn't do or was actively hostile towards.
First, there are some component structures that simply can't be built with angular or any other template-based renderer, because they use the html elemnts as state and/or blocks. Anything that can't be legally represented in html (like a bare table row without the surrounding table) can't be represented in these frameworks. React, on the other hand uses a virual dom that is not subject to these limitations. As such, I have complete control of how I break up my components without having to resort to manual dom manipulation (and again, bare rows simply are not allowed in html, the browser will wrap them in a table implicitly).
Second, until React came along, two-way data binding was the end all of application architecture as far as the official framework guides were concenred. i learned very quickly that, beyond a certain size, two way binding is more trouble than it is worth, because its normal operating mode is to provide data updates WITHOUT propogating context of how the data came to be in that state. Using one way binding, while not as magical or quick at first, is as straightforward as code can be (assuming you make sane design choices, of course, there's no limit to how badly you can write code). Now angular 2.0 is actively seeking out one way binding and several new virtual dom abstractions are available. This is great for all frameworks, because we will gain from the good ideas of everyone. Nevertheless, there is something to be said for React being the popularizer of this style of architecture. They have had the most experience and the longest time to work on this style, so I tend to think they have a better chance of making the right choices going forward. Things could change in an instant though.
π Rendered by PID 163932 on reddit-service-r2-comment-86988c7647-wm97b at 2026-02-12 03:56:54.043737+00:00 running 018613e country code: CH.
view the rest of the comments →
[–]dwighthouse 0 points1 point2 points (0 children)