How to Install React on Linux Manjaro
Hi, Welcome to Reactjs. If you want to learn core Reactjs, first of all, you have to install it on your PC. Today I’m going to tell you how to install it on Linux :)
Before installing Reactjs, you have to install Nodejs and NPM or Yarn on your PC. Please check if have already installed it on your PC.
node --version
npm — version
yarn --version
If you see any version like the above screenshot that's great (Version Number can be changed). But if you don’t have installed these yet. then follow me. So now, first of all, I will tell you how to install Nodejs and NPM or Yarn in your PC.
Open your terminal and write down below code:
- Install Nodejs and NPM
sudo pacman -S nodejs npm
2. Install Yarn
sudo npm install yarn -g
3. Now, you can install Reactjs by below code:
sudo npm install -g create-react-app
OR,
yarn global add create-react-app
4. Making React hello-world App
create-react-app hello-world
then, go to the directory:
cd hello-world
Start Your Project:
npm start
Or
yarn start
If you can be done it successfully, you will see a new window opened in your browser like below:
Enjoy!! and Thanks for reading. :)