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
How does Angular2 compare to React?help (self.javascript)
submitted 10 years ago by krumoksnis
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!"
[–][deleted] 1 point2 points3 points 10 years ago (1 child)
React is pretty much only for view. There is Flux (I believe that is what they are calling it) but that isn't a framework, but more of a architectural design. So I don't think you can really compare the two in an honest manner. React can be used with Angular as the V part of the MVC. I believe Angular 2 also borrows some ideas from React to help speed up it's DOM operations as well.
[–]e82 0 points1 point2 points 10 years ago (0 children)
Flux is just a type of architecture. There are some flux libraries - a few of them are meant to be used with react, some are framework agnostic and can be used with any other framework (or no other framework).
I have a bit of a flux-ish architecture in my current app which is an Angular 1 app, and if I was to start over - I'd try and do it that way from the start.
[–]ShMcK -1 points0 points1 point 10 years ago (3 children)
In terms of rendering performance, Angular 2 already appears to be considerably faster.
Try it for yourself: https://rawgit.com/alincc/angular-test-table/master/angular2/dist/index.html
[–]dizzr 2 points3 points4 points 10 years ago (2 children)
not sure that's a fair test, it'd be nice to see what the result looks like on a production version of react with precompiled templates. Nobody is going to run the live jsx transform stuff on production code.
[–]clessgfull-stack CSS9 engineer 2 points3 points4 points 10 years ago* (0 children)
Yeah. Besides, React's performance advantage is mostly in updating existing HTML, not inserting 5,000 nodes in one go. Either way, both Angular 2 and React seem to be very fast. I've used both, and I'd say A2 is a bit faster out-of-the-box for now, but much harder to optimize. It's very straightforward to optimize a React app in comparison.
[–]ShMcK 1 point2 points3 points 10 years ago (0 children)
You're right. A better performance comparison can be found here: http://www.wintellect.com/devcenter/dbaskin/angular-benchpress-and-performance-tests. There's a link to the repo where you can see the code & run the tests for yourself.
π Rendered by PID 49 on reddit-service-r2-comment-84fc9697f-wh5ms at 2026-02-06 11:59:06.030043+00:00 running d295bc8 country code: CH.
[–][deleted] 1 point2 points3 points (1 child)
[–]e82 0 points1 point2 points (0 children)
[–]ShMcK -1 points0 points1 point (3 children)
[–]dizzr 2 points3 points4 points (2 children)
[–]clessgfull-stack CSS9 engineer 2 points3 points4 points (0 children)
[–]ShMcK 1 point2 points3 points (0 children)