r/webdev • • Jan 05 '16

Angular 2 versus React

https://medium.com/@housecor/angular-2-versus-react-there-will-be-blood-66595faafd51
194 Upvotes

74 comments sorted by

View all comments

1

u/bradkirby Jan 05 '16

A nice comparison that's more balanced than most I've seen.

I have a question: does React have something comparable to Angular's custom directives? How does React componentize it's code?

I haven't used React, and most of my experience is with Angular 1, but I can't help but feel like React seems best for small projects while Angular 2 is best for larger ones.

3

u/misc_ent Jan 05 '16

Its componentized by using its components. Having used both I prefer React's components to extending html with directives. It becomes even better when you remove all state from components and into something like Redux. Then components simply react/update to the incoming props on the component.

React is also perfectly valid for large projects in production. Like any library/framework it comes down to devs using best practices in their code. Hell Facebook.com and Instagram both use React in production.