Introduction to React

LITON AHMED
3 min readMay 13, 2021

React is a flexible, efficient, open source javaScript library. It was created by Facebook company in 2013. The price purpose of creating it is for font-end. It was created by Jordan Walke. With its help we can create components and use them as we wish. react which loads very fast and 45% of the people in the world use this react. If we want, we can use any external thing.

React Hook

React Hook is a very popular feature nowadays that is used among the functional components with which I can easily update any of my stages. If you want to use React Hook, you must use version above 16.8. The important thing is that the hook never works inside the class component erb. There are a number of rules for using a hook. I can never call the hook inside a loop or condition. To use the hook, the node we have must be above 6.00. And the node package that I use has to use version above 5.2.

What is react.js

REACT is a library of JavaScript used to create the user interface of an application. So the front end of a website can be developed using different components of React.

Creating a reactive application consisting of reusable components does not require a complex webpage; You can build a complete webpage by building small components separately and attaching them as needed!

Facebook created the REACT library, developed their app with it! Then when Facebook React was made open-source, big companies like BBC, Imgur, Netflix, Pinterest, Reddit, Yahoo also started using React for their front-end!

REACT is now the most popular JavaScript library in the world for a number of reasons, including component-based, scalable web and mobile application development, vast developer community, easy learning and industry acceptance!

It’s not a framework

react.js is not a javascript framework but a javascript libary. There are many javascript frameworks such as vue.js, angular.js, jango etc. react.js is a popular javaScript libary that a developer can easily use to develop a fond-end. 45% of people worldwide use this library.

React Application Perfermance Optimaztion

Since its introduction, React has changed the way front-end developers think of building web apps. With virtual DOM, React makes UI updates as efficient as they can ever be, making your web app snappier. But, why do moderately sized React web apps still tend to perform poorly?

Well, the clue is in how you are using React.

A modern front-end library like React doesn’t magically make your app faster. It requires the developer to understand how React works and how the components live through the various phases of the component lifecycle.

With React, you can gain a lot of the performance improvements that it has to offer by measuring and optimizing how and when your components render. And, React provides just the tools and functionalities necessary to make this easy.

By default, React includes many helpful warnings. These warnings are very useful in development. However, they make React larger and slower so you should make sure to use the production version when you deploy the app.

If you aren’t sure whether your build process is set up correctly, you can check it by installing React Developer Tools for Chrome. If you visit a site with React in production mode, the icon will have a dark background.

--

--