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...

Platelet Rich Plasma

Platelet Rich Plasma (PRP) injections:- In recent years, doctors have learned that the body has the ability to heal itself. Platelet rich plasma therapy is a form of regenerative medicine that can harness those abilities and amplify the natural growth factors your body uses to heal tissue. What is PRP injections:- Platelet rich plasma (PRP) therapy uses injections of a concentration of a patient's own platelets to accelerate the healing of injured tendons, ligaments, muscles and joints. PRP injections are prepared by taking anywhere from one to a few tubes of your own blood and running it through a centrifuge to concentrate the platelets. These activated platelets are then injected directly into your injured or diseased body tissue. Platelet Rich Plasma (PRP) Market Executive summary and analysis (2021-2027):- Las Angeles, United States:- QY research offers an overarching research and analysis-based study on, "Global Platelet Rich Plasma Market Research...