Browse Source

"Write Code in Your Editor": Split step 5 into 2 steps (#10832)

* "Write Code in Your Editor": Split step 5 into 2 steps

To me it wasn't clear (enough) that I had to copy the file's content from [here](https://codepen.io/gaearon/pen/oWWQNa?editors=0010) *and* add the three lines to the top.

* Update tutorial.md
main
Mario Schüttel 7 years ago
committed by Dan Abramov
parent
commit
33facd1b03
  1. 3
      tutorial/tutorial.md

3
tutorial/tutorial.md

@ -56,7 +56,8 @@ If you want to do it, here are the steps to follow:
2. Follow the [installation instructions](/react/docs/installation.html#creating-a-new-application) to create a new project.
3. Delete all files in the `src/` folder of the new project.
4. Add a file named `index.css` in the `src/` folder with [this CSS code](https://codepen.io/gaearon/pen/oWWQNa?editors=0100).
5. Add a file named `index.js` in the `src/` folder with [this JS code](https://codepen.io/gaearon/pen/oWWQNa?editors=0010), and then add three lines to the top of it:
5. Add a file named `index.js` in the `src/` folder with [this JS code](https://codepen.io/gaearon/pen/oWWQNa?editors=0010).
6. Add these three lines to the top of `index.js` in the `src/` folder:
```js
import React from 'react';

Loading…
Cancel
Save