Exploring React: A Comprehensive Introduction
Welcome to the world of ReactJS. Why react?

I am a web3 developer and I am passionate about CyberSecurity
Also writes on Medium - medium.com/@sahilchandravanshi/
Search for a command to run...
Welcome to the world of ReactJS. Why react?

I am a web3 developer and I am passionate about CyberSecurity
Also writes on Medium - medium.com/@sahilchandravanshi/
Rendering Lists We will often want to display multiple similar components from a collection of data. In React, we will render lists with some type of loop. On this page, we’ll map() with React to filter and transform our array of data into an array o...
Rendering Lists We will often want to display multiple similar components from a collection of data. In React, we will render lists with some type of loop. On this page, we’ll map() with React to filter and transform our array of data into an array o...

What is conditional rendering? React components will frequently need to display different information based on the circumstances. Conditional rendering in React refers to the process of delivering elements and components based on specific conditions....

What is React Props? Props are an acronym for "properties." Props are arguments that are passed into React components, providing a method for passing data from one component to another. They enable components to be reused. The component receives pro...

This guide demonstrates the easiest method for installing Kali Linux on Virtual Box on Windows and Linux. One of the greatest Linux distributions for those interested in security and hacking is Kali Linux. Although installing Kali Linux by replacing ...

Data type refers to the type of data that a JavaScript variable can hold. Assigning values to variables, including numbers, text, and true or false, has been all we've done up to this point. What are all of those things, and what are our various opti...

React is an open-source, component-based front-end JavaScript library that aims to simplify the development of visual interfaces.
It was created by Facebook and made available in 2013, powering many of the most popular apps, including Facebook and Instagram.
Note: React is not a framework. It is just a library.
A Component is one of the core building blocks of React.
It designs simple views for each state in your application, and when your data changes, React will quickly update and render the proper component.
Each component in a React application is in charge of rendering a discrete chunk of reusable HTML. The ability to nest components within other components enables the construction of sophisticated applications from simple building blocks.

Let us understand this with a practical example:
Imagine that one of your pals uploaded a picture to Instagram. After liking the picture, you started reading the comments as well. Now, as you read through the comments, you see that even without refreshing the website, the number of likes has grown by 100 as you liked the picture. ReactJS is what caused this magical count modification.
Virtual DOM exists which is like a lightweight copy of the actual DOM.
React creates a VIRTUAL DOM in memory.
React builds a virtual DOM in memory, where it performs all the necessary manipulation, instead of directly altering the DOM of the browser.
React only changes what needs to be changed!
React determines what changes have been made and only makes the necessary modifications.
Example: This example is only to give you an idea of how JSX looks. In this whole tutorial, we will use JSX.
import React from "react";
import "./App.css";
const name = "Learner";
const App = () => {
return (
<div className="App">
<header className="App-header">
<h1>Hola, {name}. Welcome to my blog.</h1>
<span className="App-link">From Sahil :)</span>
</header>
</div>
);
}
export default App;
Output:

I strongly recommend every Web developer, at least have a fundamental knowledge of React.
That’s because of a few reasons.
React is very popular. As a developer, it’s quite likely that you’re going to work on a React project in the future.
A lot of popular frameworks and tools like Next.js, Gatsby and many others use React under the hood.
As a front-end engineer, React is probably going to come up in a job interview.

You don’t have to be an expert, but I think you need a good overview of some core JavaScript concepts:
Variables
Arrow functions
Work with objects and arrays using Rest and Spread
Object and array destructuring
Template literals
Classes
Callbacks
ES Modules
That's all you need to know before actually jumping into React.
You need to understand 4 concepts to get started:
Components
JSX
State
Props
We'll also cover more topics in this series.