Browse Source

Merge pull request #197 from learning/learning-npx-install-example

Add an example for creating a new application
main
Brian Vaughn 7 years ago
committed by GitHub
parent
commit
5a9955bec8
  1. 9
      content/docs/installation.md

9
content/docs/installation.md

@ -40,6 +40,15 @@ cd my-app
npm start
```
If you have npm 5.2.0+ installed, you may use [npx](https://www.npmjs.com/package/npx) instead.
```bash
npx create-react-app my-app
cd my-app
npm start
```
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.
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).

Loading…
Cancel
Save