EN
React - create new app
13
points
In this short article, we would like to show how in simple way create React application from command line using npm
.
Quick solution (run the command):
npx create-react-app my-new-app
Where: my-new-app
is the project name and directory that will be created.
Note: be sure the React is installed or install it with
npm install -g react
.
After application is created, we can run it using:
# change directory to our new application
cd my-new-app
# start application with npm
npm start
yarn
package manager
We can use yarn package manager, too:
yarn create react-app my-new-app
cd my-new-app
yarn start