Skip to content

Commit 5a9955b

Browse files
authored
Merge pull request reactjs#197 from learning/learning-npx-install-example
Add an example for creating a new application
2 parents 24cf457 + 6c5f847 commit 5a9955b

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

content/docs/installation.md

+9
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,15 @@ cd my-app
4040
npm start
4141
```
4242

43+
If you have npm 5.2.0+ installed, you may use [npx](https://www.npmjs.com/package/npx) instead.
44+
45+
```bash
46+
npx create-react-app my-app
47+
48+
cd my-app
49+
npm start
50+
```
51+
4352
Create React App doesn't handle backend logic or databases; it just creates a frontend build pipeline, so you can use it with any backend you want. It uses build tools like [Babel](http://babeljs.io/) and [webpack](https://webpack.js.org/) under the hood, but works with zero configuration.
4453

4554
When you're ready to deploy to production, running `npm run build` will create an optimized build of your app in the `build` folder. You can learn more about Create React App [from its README](https://github.com/facebookincubator/create-react-app#create-react-app-) and the [User Guide](https://github.com/facebookincubator/create-react-app/blob/master/packages/react-scripts/template/README.md#table-of-contents).

0 commit comments

Comments
 (0)