Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Angular 4 mixed with React [closed]

We are evaluating which front-end framework to pick for our enterprise web app. The current choices are Angular 4 and React.

I saw someone mixed the two here https://github.com/jesion/angular2-react

My question are as follows:

  1. Is it a good idea to mix Angular 4 with React? What are the advantages and disadvantages of doing this?
  2. Is there any performance benefit for using React as view template and make it into Angular component 'templateUrl'?
like image 313
Shawn Avatar asked May 22 '17 16:05

Shawn


1 Answers

I see the following advantages of combining the two:

  • Teams can partially choose their own technology stack. That's an important aspect of autonomous teams that have ownership (see Spotify engineering culture). It plays nice with the microservices principle as well (in terms of code split up) Developers are more likely to be extra motivated when they can use their technology of preference.
  • Another advantage is that you can share components in non-angular projects, and also non-react projects. React components can be used in angular applications (and other applications), but it's much harder/impossible to use angular components in a react application.

That being said, if you want to create a big Angular project, I would use angular completely and ditch React, but that's a personal preference. I like the idea when you commit to a framework, that you use it to the fullest. I don't see React as a framework either, since it's meant to be the view-layer only.

I hope that answers your question

like image 183
Brecht Billiet Avatar answered Sep 18 '22 22:09

Brecht Billiet