REACT JAVASCRIPT
Tags: react
Published: 2022-11-15 11:01:23

## JavaScript and its libraries and frameworks
JavaScript is a scripting and programming language. JS is used to make web page's functionality and make its pages functional and to interact with user, over the years JS is the most used programming language and now there many libraries and frameworks of JavaScript which are making the code easy. Following are the  main libraries of JavaScript,
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/2f2zjtpvzo7mhc1e2lfv.jpg)
Besides of them JavaScript has many frameworks and libraries depending on our work and need. And because of many advantages JS libraries and Frameworks are used significantly. Among all of them **React** is the most used library. 
First understand that what is the difference between Library and framework,

## Library vs Frameworks

The terms library and framework may sound similar but they work differently, let's dig into the key differences between them,

A library is a set of code which is being written by a developer that you can call when you are building a project, whereas

A framework is a supporting structure that gives shape to your code. In the framework we have to write the code according to the structure given by the framework.

Library provides predefined functions and classes to developers to make their work easier, more efficient and to boost the development process.

Framework on the other hand, is like the foundation upon which developers build application. One thing here is to remember that sometimes frameworks also use libraries sometimes but it is not necessary that all frameworks use. 

When we use libraries its our call that where we have to call or import or export functions but when we are using frameworks, frameworks decide that where to call, import or export the function and it gives space to  write the code.

Some Example of Libraries are: 

- React
- JQuery
- Three

Some Example of Frameworks are: 

- Angular
- Express
- Django
 
I hope now you can understand about libraries and frameworks. Let's move towards the main topic,

## What is React

Now as you all know that React (also called React.js) is the most popular JavaScript library. React is a component based library which is used to make interactive UI's(User interfaces), it is considered as the most popular JS front end library, which has a strong foundation and large community supporting it. Even though react is very young but it is giving though competition to all other libraries and frameworks, specially Angular which was the most popular before react. 

In React JS everything is components, these components are joined to make a website. The biggest advantage of using components is we can change any component any time without effecting the rest of website. When we are working on any large project and when any kind of data is added or removed or updated react automatically make changes in project, it prevents the browser to be reloaded in order to update changes.

## React JS vs Angular JS

As I  mentioned above that Angular and React are the two most used library and framework of JS. React is the front end library of JS which allows to create interactive UI, developed by Facebook. Whereas Angular is the JS front end framework managed by Google,  Angular is most commonly used framework for scalable and high performing mobile and web apps. 
While comparing Angular JS and React JS, understand that Angular JS is used to make single page applications using HTML and Typescript where React JS is commonly used to create User Interfaces(UI) for the single page applications from components.

The actual difference between Angular and React is Learning curve. Angular's learning is steeper while React has moderate learning curve.

Both Angular and React are the most popular front-end technologies in the developer's community. They offer several amazing benefits but React works better than Angular. Moreover, a huge development community supports React JS.