How to Create React App Using Yarn


You can check if you already have Node and Yarn by running node –version and yarn –version respectively.

If you don’t have Node, follow the instructions on NodeJS website.

To install Yarn, run:

npm install --global yarn

##Create React app in Yarn

To create your first app, run the following command:

yarn create react-app project-name

Once the script completes running, you should have a new folder called project-name.

Get inside the folder by running:

cd project-name

Inside the project name folder, you should have the following files and folders. [image of generated files and folders]

To view you new react app, run:

yarn serve