Skip to main content

What is React Js ?



What is React Js ?

Let's understand in simple words what “react” means. The general meaning of “react” is 'to do or say something because of something that has happened'.

ReactJS is just like the same. In simple words, “react” in the context of ReactJS means to update or change part of the web page or user interface in response to something that has happened, such as a user clicking a button, entering the data in the form, or getting new information from the server, etc.

In everyday life, when something happens, we react to it. For example, if we are in a classroom and the teacher asks a question, we respond with an answer. Similarly, in web development, ReactJS helps developers build web-based applications that react to user actions or data changes. When users interact with a React-powered web application, it dynamically updates the user interface to show new information or reflect the user's input without needing to reload the entire page.

Now, you are thinking about how the information on the page update without reloading the page. Here comes the concept of “Virtual DOM” We are understanding it more in this.

React accomplishes this by using a virtual representation of the user interface called the “Virtual DOM”. Whenever there's a change, React efficiently compares the Virtual DOM with the Actual DOM, and only updates the parts that need to be changed. This makes the application process faster and more efficient, leading to a smoother and more interactive user experience.


Now it's time for describing the definition of ReactJS,

ReactJS is an open-source JavaScript library that is developed and maintained by Facebook. It was first released in 2013 and has since gained massive popularity in the web development community.

React is primarily used for building user interfaces (UI) also referred to as a front-end or client-side library.

Why we use ReactJs ?

One of the main reasons why we use ReactJS is because of “its potential to reuse code as components”.

If you don't know what are components no worries we will understand them later, for now just remember “It's a piece of code we can use again and again in our application”.


Key features of ReactJS

There are more features of React. We will cover all in this post, so no worries.

Next question which came in your mind is Why we use React ?

In ReactJS, we simply write it like this

import React from "react";

export const hello = () => {

  return <div>hello world</div>;

};


  Output:- hello world  

Comments

Popular posts from this blog

Product Card Using HTML CSS Free !!

In this video, we create a product card using HTML CSS only.

Login Page Using HTML CSS Only

  In this blog we see how we create Login Page using HTML CSS Only. To create the Login Page, you can refer to this video. Please Like, subscribe and share this channel and blog.