Professional Documents
Culture Documents
React Js Installation
React Js Installation
To install npm on Ubuntu Linux, login into your server as a sudo user and invoke the command below:
Once the installation is complete, you can verify the version of npm installed using the command:
$ npm --version
The installation of npm also installs node.js and you can confirm the version of node installed using the
command:
$ node --version
create-react-app is a utility that enables you to set up all the tools required to create a React Application
Creating a React application is quite simple & straightforward. We are going to create a react app
called tecmint-app as follows
$ create-react-app tecmint-app
This takes roughly 5 minutes to install all the packages, libraries, and tools needed by the application
If the creation of the application was successful, you will get the notification below giving the basic
commands that you can run to start managing the application.
$ npm start
You will end up getting the output below showing you how to access the application on the browser.
http://server-ip:3000
This shows that the default React app is up and running