Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save codedeep79/4750ec05ae50385c3947ac80a1bee239 to your computer and use it in GitHub Desktop.

Select an option

Save codedeep79/4750ec05ae50385c3947ac80a1bee239 to your computer and use it in GitHub Desktop.
Cài đặt ReactJS trên Ubuntu 20.04

Prerequisites:

Install Node.js in Ubuntu

Install npm:

Install Yarn package manager: sudo npm install -g yarn

Create A New React Application

You can create a React.js application using one of the following commands: yarn create react-app myreactapp

Except yarn, you can also use npx (npx create-react-app myreactapp) or npm (npm init react-app myreactapp) commands to create React.js application.

On successful application creation, you will see a long result on screen.

Start React Application

Switch to project and run yarn start to start application.

cd myreactapp 
yarn start 

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment