React Web Beginner
Explorer for react.js

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

create-react-app example-001

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:

  npm start

    Starts the development server.

  npm run build

    Bundles the app into static files for production.

  npm test

    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:

  cd example-001

  npm start

Happy hacking!

Run your first react project

Fire below command

npm start

you can see below result once it run

AXIOS - http package to install for REST API call management

sudo npm install axios -g

This will helps for ajax post, get, put, delete kind of operations.

npm install axios --save
This command will automatically update package.json, react project folder 
ODOO 16 Config Sample