new way installation create-react-app using npx (#22220)
This commit is contained in:
committed by
Christopher McCormack
parent
e5a531682f
commit
a4b3660e53
@ -17,6 +17,12 @@ cd my-app
|
||||
npm start
|
||||
```
|
||||
|
||||
Another option is using the package `npx` which doesn't require you to install the package `create-react-app` before using it. So you can use it without installing it which is helpful for the future not to have too many packages installed on your machine
|
||||
```
|
||||
npm install -g npx
|
||||
npx create-react-app my-app
|
||||
```
|
||||
|
||||
This will set up your development environment so that you can use the latest JavaScript features, provide a nice developer experience, and optimize your app for production.
|
||||
|
||||
`npm start` will start up a development server which allows live reloading<sup>3</sup>.
|
||||
|
Reference in New Issue
Block a user