How to install and work with react js

React Js is a javascript library developed by Facebook developer for developing the front-end part of an application

In React Js we can create reusable UI components. This is the most popular framework for developing the front-end part of an aplication.

To start work with React Js. We should be familiar with the basics of HTML, CSS, and JavaScript before starting the React Js.

To install before the React Js. We need to install Node and Node Package Manager (NPM). We can install NPM from the official site https://www.npmjs.com

We suppose that you have already installed Node js and NPM in your System. We can install React Js with multiple ways but we will install React with create-react-app React Installation module

So now we need to install create-react-app module as a global in our system directory. E.g

     npm install -g create-react-app 

Now run the following command to create the project folder and application. Where we want to create the project.

     C:Projects> create-react-app my-new-react-app 

Here C:Projects> is the directory where we want to create our new React Js application. create-react-app is the command to create new React Js Application and my-new-react-app is the folder and application name.

So now new React Js application has been installed with a default hello world! example. Now go into the my-new-react-app folder. e.g cd my-new-react-app

Start the application by npm start command. Now our application will start and We can browes it on http://localhost:8080/ Url.

Top 50+ Linux Commands

Linux is a powerful operating system with a rich set of commands that allow you to control nearly every aspect of the system. Here is a list of over 50 Linux commands that you should know, including some of the most important ones. beginning of what …

read more

how to run start up

Starting a startup can be an exciting yet challenging endeavor. Here's a general outline of steps you can take to get started: running a startup requires dedication, perseverance, and flexibility. Be prepared to overcome challenges and learn from fai …

read more