React.js Step By Step
Require to install node.js
Install React.js globally [Linux]
Upgrade NPM if you required
sudo npm install -g npm
Install react globally
sudo npm install create-react-app -g
Create React Project
You will see below result of above command
Creating a new React app in /home/snippetbucket/source/react-js-projects/example-001.
Installing packages. This might take a couple of minutes.
Installing react, react-dom, and react-scripts with cra-template...
Initialized a git repository.
Installing template dependencies using npm...
Created git commit.
Success! Created example-001 at /home/snippetbucket/source/react-js-projects/example-001
Inside that directory, you can run several commands:
Starts the development server.
npm run build
Bundles the app into static files for production.
Starts the test runner.
npm run eject
Removes this tool and copies build dependencies, configuration files
and scripts into the app directory. If you do this, you can’t go back!
We suggest that you begin by typing:
Run your first react project
Fire below command
you can see below result once it run
AXIOS - http package to install for REST API call management
sudo npm install axios -g
npm install axios --save This command will automatically update package.json, react project folder