r/reactjs • u/ndboost • Jun 08 '16
what are some valid react vs angular (1.5) points in an enterprise world.
I love react. I left angular 1.1x for react. I've always used the two way binding argument and large rendering speed of why react is better than angular. I have some .NET seasoned mvc people at work and they're arguing why to stay to angular 1.5 and not bother with learning react. their primary argument is its "bleeding edge", which so is angular 2x and they're already talking about writing in 2x for new apps.
I'm curious what other people think of why to pick react over angular. so let's hear it, what are some (in your opinion) valid reasons why react is better than angular 1.5x (without two way binding) if you had to explain it to the MVC and uninitiated developers.
3
u/ngly Jun 09 '16 edited Jun 09 '16
Go to https://facebook.com and open the console.
Paste in require('React').version
You'll see they're using the master branch, "16.0.0-alpha". I think that's more than enough points for the enterprise world. The latest stable release of React is 15.1.0, so Facebook is always using the latest, "unreleased" version. Try finding a popular Google product using an alpha version of Angular. I also think React nestles into an enterprise world very nicely. It can be dealt with by mostly Frontend people, leaving the rest of the engineering teams on their specific technology stack. It just fits in much better than an overall product.
1
u/ndboost Jun 09 '16
It can be dealt with by mostly Frontend people, leaving the rest of the engineering teams on their specific technology stack. It just fits in much better than an overall product.
This I couldn't agree more with.
1
u/ngly Jun 09 '16
Which part? I guess if you're doing server rendering it changes things up a bit.
1
u/henleyedition Jun 10 '16
Even with server rendered React apps, you're basically just coding as if you're on the front end. It just happens to also run on the server. It's often a fairly basic Express/Koa server just to serve up that first html. Usually the React app consumes some sort of REST API built by backend devs in whatever language. At least that's how I've seen it done.
2
u/turkish_gold Jun 10 '16
I'm not sure that Facebook is what we think of when we imagine a canonical enterprise company. Their motto is "run fast, and break things" (or something of that nature), and they have a single large consumer facing application.
The typical enterprise company is a lot more like Alphabet (formerly Google): a conglomerate inside multiple industries, wherein each company is siloed, and the complexity of operations primarily comes from having to deal with other businesses, and contracts are measured in the millions of dollars at a minimum.
By this notion....
Twitter is not an Enterprise communications company. AT&T is an enterprise communications company.
Mixpanel is not Enterprise BI. Palantir is Enterprise business intelligence.
2
Jun 09 '16
I use Angular at work but would never dream of using it for personal projects.
I think bringing React into a large enterprise would be difficult because it's only one small piece. Angular is a full framework so offers an out-of-box solution for every problem (normally with a recognized community alternative) with React there would be endless discussions about how to solve something and much fragmentation.
1
u/ndboost Jun 09 '16
Eh I wrote a wrapper around whatwg-fetch that acts as the Api middleware.. we're a .NET/SAP shop and I haven't had many problems with the limited react stuff we've been doing.
1
Jun 09 '16 edited Jun 09 '16
That's kindof my point, for limited stuff React is perfect, when you're working in a small team of good developers it's perfect.
If you want to go full-on React (router, state container, e2e tests etc.) you need quality JavaScript developers - I've never had that luxury in an Enterprise environment. Angular will give you much more structure but maybe your company doesn't need it?
1
u/CarlFarbman Jun 12 '16
Ha, I'm in the opposite boat. Use react at work and angular 1.5 at home/side project.
2
u/Canenald Jun 09 '16
We're using React here in a pretty large company and I think the main advantage is that it's pretty easy to use a native JavaScript or jQuery or d3 third-party plugin or library or whatever you want to call it. Just wrap it in a React component, connect the lifecycle methods to React component's lifecycle methods, pass config as props, and you are done. Being able to draw on the well-developed ecosystems of those much older libraries is pretty powerful.
The downside is that it's almost impossible to find experienced React developers. I guess this is kinda mitigated by the fact that React is really easy to dive into if you're good at vanilla JavaScript and open-minded about it.
1
u/ndboost Jun 09 '16
The downside is that it's almost impossible to find experienced React developers. I guess this is kinda mitigated by the fact that React is really easy to dive into if you're good at vanilla JavaScript and open-minded about it.
This is a downside which won't be around for long as time goes more React developers will emerge.
I trained people at work who are "novices" when it comes to advanced frontend stuff like angular/react/html5 and got them onboard and up to speed with React to the point where were iterating on our own on our own little components for the same app working to push it to production.
3
Jun 09 '16
You don't need to hire for React developers, just good JavaScript developers, it's so simple they'll pick it up quickly. If you want developers to work on Angular immediately then it's essential they have previous experience because of it's scale.
1
u/turkish_gold Jun 10 '16
I think that's the point of an enterprise-ready framework. You don't have to hire good developers, just mediocre ones.
2
u/_hooan Jun 09 '16
React has been used in production at Facebook and plenty of big companies (Uber, Airbnb are a couple out of thousands). Also, I bet React is now the same age as Angular was when your team adopted Angular.
Anyway, can't help as much as the other folks in this thread. I'll just say it's interesting how much .NET/MVC people love Angular.
2
1
u/Capaj Jun 12 '16
I'll just say it's interesting how much .NET/MVC people love Angular.
It's like a full package-for most enterprise apps, you won't ever need anything else. So you don't have to know webpack, npm and how to manage your state. For most enterprise apps, you just slap compiled angular in there, add couple of your own controllers/templates and you're done. React is so MUCH harder to just get off the ground. It is better and more versatile, but it doesn't matter when most people can't even get it up and running on their own.
9
u/henleyedition Jun 09 '16 edited Jun 09 '16
At my work, we're using Angular 1.5 (recently upgraded from 1.4), but I use React exclusively in my own time. I did not grow up in the MVC world, so I am probably particularly biased towards React.
React isn't bleeding edge. It's had a stable API for several years now and has been used to build high-visibility flagship products at hundreds of the largest tech companies from Facebook, Twitter, and Google to Uber, Netflix, AirBnB, Atlassian and seriously almost every other major company that anyone ever talks about. It isn't some fringe library.
Angular has a huge image problem. Unlike Facebook's relationship to React, Google barely uses Angular and certainly not for any of its flagship products like Gmail, Inbox, or Google Docs. The hugely popular Angular Material library was just deprecated and everyone's shitting their pants about it, including at my company, where we are/were using it to build a new product. I get the feeling Google doesn't care about Angular 1.x anymore, and with the way they've managed 1.x, I have serious doubts that 2.x will be any better, except for the concepts they took from React.
In addition to mismanagement, Angular is dying a slow death because new techniques for building modern, reactive web apps are coming from elsewhere. The best they can do is play catch up and so far it seems to be falling short. New developers don't care about the old way (MVC) of building web apps. They just want to get things done cleanly and efficiently, which is where new frameworks like React and Vue, and architectures like Flux and Redux shine. Young developers are cutting their teeth on functional programming techniques rather than OO, and these concepts are becoming widely popular in the javascript world as people realize that the benefits---hot reloading, time travel debugging, reduced complexity and a simpler mental model---far outweigh the cons---mostly conceptual overhead.
This was an early talk given by Pete Hunt, one of the creators of React. It is still one of the best arguments for React vs the status quo:
Rethinking Best Practices
And some other convincing links:
Angular 2 versus React: There Will Be Blood
Dan Abramov - Live React: Hot Reloading with Time Travel
Rethinking Web App Development at Facebook