Japheth Joepari
LearnFactory Nigeria
2 min readJun 26, 2019

--

The Ultimate Guide To Creating A React App

Introduction To React

React can be defined as a JavaScript library used in building outstanding UI and UX.

Why Use React

(1)React makes it easy to create outstanding UI.

(2)React can also render on the server using Node and power mobile apps using React Native.

(3) The arrangement of codes in React makes it more predictable and easier to debug.

How to create A React App on the command line Using the Terminal on Linux:

The first step is having NODE and NPM installed on your Operating system

Guide to installing node on linux

  1. Go to your terminal or type ctr+ alt+ T this pops out your terminal then input:
cd Desktop/ 
//This switches to your folder directory to your desktop

After switching to your folder directory input:

sudo apt install nodejs
//this installs the latest version of nodejs in your OS

After installing node to know the version of node input:

node -v
//this tells you the current version of node you are currently using

Then install NPM using this command, note: NPM stads for Node package Manager

sudo apt install npm
//This installs npm

Then input:

npm -v
// this tells you the current version of npm you are using

After installing node and npm you are now set to create a react app

In other to create a react app type this command in your terminal

npm install -g create-react-app
// this command installs 80% of the React

then type it again

npm install -g create-react-app
//this installs a complete react app for you

--

--