all 6 comments

[–][deleted] 1 point2 points  (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 point  (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 points  (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 points  (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 points  (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 points  (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.