Install React JS in windows | What is React JS
React JS is a JavaScript library to develop a website. It was launched by Facebook in 2011. This is used in front-end. According to google trends, Now it is a most popular JavaScript library.
When we use React JS?
- If you are a starter and you want build a project, Then this is correct way to learn and build your projects.
- This is a perfect way to start when you decide to learn JavaScript.
- When you are handle a small project.
Requirements to learn
Here is the basic and very normal requirement to learn react JS. If you don’t know the below things, Don’t worry you can learn those things when you started,
- Basic HTML
- Basic CSS
- Basic JavaScript
Installation of React
If you want to install react, you should have the Node JS in your local machine(PC). If you don’t have the Node JS, Follow the below steps.
- Go to official website and download the Node JS msi file: https://nodejs.org/en/download/
- It will automatic install some properties includes npm.
- Check the nodeJS and npm is install or not with this comments in windows comment prompt. node -v and npm -v
- Now go to comment prompt and type the below code then press enter. It will take some time to install. npm install -g create-react-app
- Check the react is installed or not with this code. npm view react version
Now you can create a react JS app using below code.
npm create-react-app react_app-name