Sharing Top Content from the Angular-sphere.

Why use VueJs, ReactJs, AngularJs instead of php includes/ajax calls? • r/webdev

  • Do you guys have any videos/articles that show WHY things like Vue.js, reactjs, angular were created?
  • (Had angular in there at first, but turned out to me more problems that it worth) – – I’m trying to wrap my head on the benefits of using such frameworks, and the only thing I find is trade some network traffic for user cpu.

Hello Do you guys have any videos/articles that show WHY things like Vue.js, reactjs, angular were created? I’m refreshing an application…

You’re having a hard time understanding it because you are looking at the backend and front-end together as a single application.

When you create an spa using a JavaScript framework you are creating 2 entirely separate applications.

One is an api. This is your backend. It handles the persistent data and business logic related to it. It does not concern itself with an interface at all beyond data responses, usually json, to valid requests.

Then completely separately you write a second application that concerns itself with user interaction. It handles look and feel, actual ui flow, and all those sorts of concerns that an actual user facing application deals with. This application just happens to run in the browser but it is not a part of your backend it is only a consumer of it. It’s a totally separate application that just happens to use your api.

But the two applications are completely separate.

So why would you do this? Well this isn’t meant to be a comprehensive answer but one of the main reasons is now you can also write other front ends to access and work with your api.

You can create a standalone desktop app that doesn’t run in the browser.

You can write a native mobile app that uses your api in the same way but again doesn’t run in the browser.

Or any other way you…

Why use VueJs, ReactJs, AngularJs instead of php includes/ajax calls? • r/webdev