Updated babel-preset-react-app README.md (#3463)

Added some more documentation to install the babel-preset-react-app making it more clear on how to get started with this preset outside of create-react-app.
This commit is contained in:
David Boyne
2018-01-09 15:59:26 +00:00
committed by Dan Abramov
parent 373687feaf
commit ab507e62f8

View File

@@ -16,6 +16,12 @@ If you want to use this Babel preset in a project not built with Create React Ap
First, [install Babel](https://babeljs.io/docs/setup/).
Then install babel-preset-react-app.
```sh
npm install babel-preset-react-app --save-dev
```
Then create a file named `.babelrc` with following contents in the root folder of your project:
```js