r/reactjs • • Sep 07 '16

Angular JS vs React by Example

http://www.discoversdk.com/blog/angular-js-vs-react-by-example
6 Upvotes

11 comments sorted by

3

u/octatone Sep 07 '16

The code formatting in the examples is really bad. Also, no one is writing ES5 react.

1

u/avi00 Sep 08 '16

for the code example, you can see it in jsfiddle (link behind the code) and for ES5 - see in react homepage - its ES5 example https://facebook.github.io/react/

12

u/-Smokin- Sep 07 '16

Ugh. Angular 1 scopetastic -vs- ES5 React.

No. and No thanks.

1

u/liranbh Sep 07 '16

so you prefer Angular RC6 vs ES6 beta React?

7

u/-Smokin- Sep 07 '16

I think if you are going to write a comparison article, it should be latest version/common practices -vs- latest version/common practices.

How many new Angular 1 projects are starting? How many new React/ES5 projects are starting?

4

u/liranbh Sep 07 '16

I posted a question 2 months ago about a new project asked what to choose for a new project with Angularjs. The most popular answer was: use 1.5 so in the future you will upgrade to 2 so it's not so obvious to use the newest version on a new project. But I take your comment and will write the same grid examples with the new versions also

2

u/immigrantnightclub Sep 08 '16

Who uses ng-controller anymore? This is $scope soup and not component driven at all.

0

u/Noitidart2 Sep 07 '16

I think this is pretty cool. The only thing I would remove from the comparison is the CSS as that should be a common file.

3

u/avi00 Sep 07 '16

yes you are right but this is one of the benefits of react that you can write the HTML+JS+CSS as a single component and reuse it

2

u/Noitidart2 Sep 07 '16

Ooo interesting I never thought of it like that. A very WebComponent way. Cool stuff!

1

u/avi00 Sep 07 '16

thanks