Features of ReactJS.
- Speed
- Simplicity
- Scalability
Points which we will cover in this article
- ReactJS Environment Setup
- How to make React component
Environment Setup
Tools required for ReactJS environment
- Node.js
- Visual Studio Code
Steps to Setup ReactJS Environment
- Create a directory for React.js App.
- Open the command prompt.
- Create a directory for React.js App.
- Open the command prompt.
Go to Reactjs directory location - see screenshot.

Type command for React environment.

Npm install Create-react-app -g
-g is representing that the installation type is global.
Second command - Create-react-app ApplicationName
Go to AppliactionName directory and type npm start.

After starting your first React application, you will get the default screen on the browser.

Create component in ReactJS
React component is a reusable independent piece of code.
You can see the default structure of ReactJS application in the below screenshot.
I will keep the only required file for basic component practice so that I delete an extra file from this structure which is highlighted by red rectangular box 2.

Now. the application folder structure should look like this.
Code text
- import React from 'react';
- import ReactDom from 'react-dom';
- class Hello extends React.Component {
- render() {
- return ( < h1 >Hello < /h1>)
- }
- }
- ReactDom.render( < Hello / > , document.getElementById('root'));
In there, component render() method is the most important one. In render method, we will return what we want to show on the page.
ReactDom.Reander() is specifying where on the page we want the app component to be rendered. In the ReactDom.Reander method we pass, the first argument passes as component name like <Hello/>and second is Id of the HTML tag.

Sanaya SethPosted Aug 29, 2020, 7:45 AM
<a href="https://nareshit.com/reactjs-online-training/"> reactjs online training </a>
Sanaya SethPosted Aug 29, 2020, 7:45 AM
This post is much helpful for us. This is really very massive value to all the readers and it will be the only reason for the post to get popular with great authority. https://nareshit.com/reactjs-online-training/
Sanaya SethPosted Aug 29, 2020, 7:45 AM
This post is much helpful for us. This is really very massive value to all the readers and it will be the only reason for the post to get popular with great authority.
Parth PatelPosted Nov 5, 2017, 7:14 AM
It is very useful for Beginners of React Js.
Nilesh PatilPosted Oct 30, 2017, 8:54 AM
Nice article sir.........