Skip to main content

Angular Vs React Vs Vue


There are three frameworks for building any web application that every frontend developers knows about:- React, Vue and angular.

React is an UI library, Angular is a fully fledged front end framework, while Vue is a progressive framework.

Each framework is component based and allows to create UI features rapidly.

They all have different structures and architectures, so let's have a look at their differences:-

React:-

React is not strictly a framework because it can be used as a UI library to render elements, without enforcing a specific project structure.

React doesn't enforce a specific project structure, to understand this, let's have a look in it's simple coding:-

ReactDOM.renderC
  <h1> Hello, world! </h1>
  document.get Element By Id C'
);

Its elements are the smallest building blocks of react applications. They are more powerful than DOM because ReactDOM often updates its efficiency whenever something changes.

It is based on JavaScript but it is mostly combined with JSX, i.e, JavaScript XML, a syntax extension that allows to create elements that contain HTML and JavaScript at the same time.

Whatever we create with JSX could also be created with the React JavaScript API, but most developers prefer JSX as it is more convenient.

Vue:-

It is a core library that focuses on the view layer only. It is called progressive framework because its functionality can be extended with official and third-party packages, such as Vue Router or Vuex, to turn it into an actual framework.

Although vue is not strictly based on MVVM, i.e, Model-View-View-Model pattern. Its design was somehow inspired by it. With vue, the working is mostly done on View Model Layer, to ensure that the application data is processed in a way that allows the framework to render an up-to-date view. 

Components in vue are small, self-contained and can be reused throughout the application. Single file components (SFCs) with the .vue extension contain HTML, CSS, JavaScript so that all relevant code resides in one file. SFCs are mostly recommended to organize code in vue projects.

Angular:-

Angular is the original framework based on MVC,i.e, Model View Controller framework. Structure of the projects in angular are Modules, Components and Services. 

Each angular application contains atleast one root component and one root module. Angular templates are written in HTML but can also include Angular template syntax with special directives to output reactive data and render multiple elements, among other things.

Services in angular are used by components to delegate business logic tasks such as fetching data or validating output. They are a distinct part of angular applications. While angular doesn't enforce their use, it's highly suggested to structure apps as a set of distinct services that can be reused. Angular is built in TypeScript, so its use is recommended to get the most seamless experience, but plain JavaScript is also supported. 

Comments

Popular posts from this blog

“The one where I lost a FRIEND”

  “ So no one told you life was gonna be this way, Your job is a joke, you're broke, Your love life is D.O.A, It's like you're always stuck in second gear, When it hasn't been your day, your week your month, Or even your year… but…. I'll be there for you, When the rain starts to pour, I'll be there for you, Like I've been there before, I'll be there for you, Cause you're there for me too” The song might sound familiar to lot many, and for those who don't know what I'm talking about will understand in few minutes, just hang in there… The story dates back to 2022, when I was all alone and the darkness in my mind hovering over my intrusive thoughts. I was surviving on anti-depressants and multiple therapies since last couple of years. Wandering through the browsers and social media, i discovered something I didn't knew I needed. It was the sitcom series F.R.I.E.N.D.S, I know it's childish but guess what!!! I bought yearly Netflix subscri

Apple TV will soon be available for the Android users

  Apple has planned to introduce its Apple TV App to Android users in order to expand its reach from iPhones and certain Android TV sets. This will allow android users to stream Apple TV contents from another platform.  Apple is all set to bring Apple TV to smartphone and tablets users.  This is done to increase the reach of the platform and to engage more audiences with their content. One can access plethora of content of varying genres such as horror,  thriller, romcom, crude humor, etc. As per the latest report released by Bloomberg, Apple is hiring engineers to work on this new project. Earlier, Apple TV was only available to the iPhone users and certain Android TV users. With the developing marketing and distribution strategies, to engage more audiences and increase the overall reach, Apple TV app will soon be available to smartphone users. The app will also facilitate the users to subscribe other Apple TV channel such as HBO and Showtime so that users can enjoy unified subscripti

NEET 2024 results controversies continues, No integrity compromised, says NTA

 NEET Director General Subodh Kumar refuted claims of a paper leak, explaining that the problems were confined to six centers and impacted just 1,600 of the 24 lakh candidates. He guaranteed that the overall integrity of the exam remained intact. Days after numerous National Eligibility cum Entrance Test (NEET) aspirants alleged irregularities and inflated marks, resulting in 67 candidates sharing the top rank, Director General Subodh Kumar reiterated on Saturday that there was no paper leak. Speaking at a press conference, the NTA chief stated that a thorough analysis by the agency revealed that the issue was confined to just six exam centers. Kumar also mentioned that the results for NEET candidates who were awarded grace marks might be revised. He added that the Education Ministry has established a panel to re-examine the results of over 1,500 students. However, he assured that the admission process would remain unaffected. "We have transparently analyzed all aspects and declar