ASP.NET MVC and Angularjs vs ASP.NET MVC and Reactjs

I used AngularJs on top of my ASP.NET mvc projects. Although both AngularJs and ASP.NET are based on the mvc architecture, I see some advantages when using AngularJs on top of my ASP.NET mvc projects. The main advantage that I see in this approach is a better representation of the views. If so, why not use ReactJs with ASP.NET mvc, as it focuses exclusively on views. Why do we have to mess up the two mvc frameworks. Isn't it better to use Reactjs on top of ASP.NET mvc than to use a combination of AngularJs and ASP.NET mvc (note that I will always use ASP.NET mvc and I don’t want to use a pure JavaScript structure). Please correct me if I am wrong. Thank you in advance.

+5
source share
1 answer

I used both angular and reacted in projects in the past. With angular, you pollute your html markup with angular code. With the reaction, all of this is encapsulated in the component. Since I was never an expert with angular, I may not have used it to the best of my ability, but for me, Reactjs seems to be a better framework and seems to work better for ASP.NET MVC.

I do not believe that there is one right tool to do this job. This is really what suits you and what you like. I would suggest giving Reacts a chance.

+1
source

Source: https://habr.com/ru/post/1233406/


All Articles