Angular.js vs React.js with php mvc (Laravel)

I know what angular.js is, and I even had a question about it @ Why use AngularJs in the frontend if Laravel is already used as the backend? ,

but recently I started reading about React.js and from its site (this is V in MVC), which is exactly what I have after "processing the view and nothing more."

for me, I think Angular.js as an MVC framework was created to be used with something that is built with JavaScript from beginning to end, like Node.js

and this seems redundant when used with something like Larval , where I just need something to handle the front end and nothing else + Angular has 2 main disadvantages

  • with the latest news about the new version, which will not be backward compatible with the current version, Iโ€™m even afraid to start studying it, just to find that more or less every project uses the old version, which is basically true.

  • angular renders the whole house if something has changed, which again is a problem for large projects.

Based on the foregoing, please note that I want to study / use JS solely to improve user convenience, so as not to create another Gmail or Facebook, and therefore my question is

Is it possible to use React.js with Laravel to handle the presentation and execute everything that Angular was going to give, or should I use the Angular I like or not?

+8
angularjs reactjs laravel
source share
1 answer

can React.js be used with Laravel to handle the view and do whatever Angular was about to give?

Not

The reaction is for submissions only. Responsive components are state-dependent components with some really smart visualization tools happening behind the scenes. To create a fully functional external application, you need to link some other code (or write it yourself).

React works well with Facebook Flux . I would suggest exploring this to learn how to manage the state of your reactive components.

What is the key to understanding here is that Flux and React are not part of a large interface structure. React is a library, and Flux (as provided by Facebook) is provided only by the dispatcher. The rest is up to you. There are several pre-existing implementations that you can see if you need help getting started.

What I like about flux is that it allows me to implement what works best for my application. React takes care of the heavy lifting of the DOM and is very easy to learn. Compared to Angular, I donโ€™t need to learn arbitrary conventions and giant APIs of huge structure.

+9
source share

All Articles