mirror of
https://github.com/reactjs/react.dev.git
synced 2026-02-24 20:53:08 +00:00
"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
This commit is contained in:
committed by
Dan Abramov
parent
c3c448860c
commit
33facd1b03
@@ -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';
|
||||
|
||||
Reference in New Issue
Block a user