React JS
What is React?
React is a Declarative Component-Based JavaScript library for building user interfaces.
What the heck is Declarative?
Declarative means You tell what you want, not how to do it. Let’s take an example to understand it very clearly. Suppose you have visited Pizza Hut and you order a Pizza[ "I want a large cheese pizza." (WHAT you want)], you don’t instruct the chef how to make the Pizza for you.
In Programming Terms:-
Components
Component is something like an isolated unit which has all the logic of our code basically our business logic, our presentation logic, or our API integration everything within itself. This means one component can be developed or tested completely in isolation from another component, and at a later point in time, multiple components can be brought together, integrated, and used to perform integration testing and all these things before we finally deliver.
Recommended by LinkedIn
Let’s take an example to understand it very clearly :- Think of a component like a Lego block, each block works on its own, but you can combine many blocks to build a bigger structure.
Why React is a User Interface Library?
A library is focused on just one thing and gets it done very well, whereas a framework does multiple things and has the flexibility of multiple functionalities. Now, why is React a library? Because React was actually invented, designed, or coded to solve the problem of User Interface development — and it does that.
In short, React is called a User Interface library because it is made to focus only on building the UI. A library is different from a framework because it does one thing really well, while a framework can handle many things. React was created to make UI development easy and efficient, and it does that job perfectly.
Conclusion
In short, React is called a User Interface library because it is made to focus only on building the UI. A library is different from a framework because it does one thing really well, while a framework can handle many things. React was created to make UI development easy and efficient, and it does that job perfectly.
Loved reading this, Prasenjit ✨