Skip to content

Commit 254d81d

Browse files
authored
Merge pull request #165 from tricinel/feature/tutorial-documentation-improvements
Improve tutorial documentation; fixes #71
2 parents bc9aa39 + 5a975b8 commit 254d81d

File tree

1 file changed

+15
-1
lines changed

1 file changed

+15
-1
lines changed

content/tutorial/tutorial.md

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,9 +54,23 @@ If you want to do it, here are the steps to follow:
5454

5555
1. Make sure you have a recent version of [Node.js](https://nodejs.org/en/) installed.
5656
2. Follow the [installation instructions](/docs/installation.html#creating-a-new-application) to create a new project.
57-
3. Delete all files inside the `src/` folder of the new project (don't delete the folder, just its contents (eg `rm -f src/*`)).
57+
58+
```bash
59+
npm install -g create-react-app
60+
create-react-app my-app
61+
```
62+
63+
3. Delete all files in the `src/` folder of the new project (don't delete the folder, just its contents).
64+
65+
```bash
66+
cd my-app
67+
rm -f src/*
68+
```
69+
5870
4. Add a file named `index.css` in the `src/` folder with [this CSS code](https://codepen.io/gaearon/pen/oWWQNa?editors=0100).
71+
5972
5. Add a file named `index.js` in the `src/` folder with [this JS code](https://codepen.io/gaearon/pen/oWWQNa?editors=0010).
73+
6074
6. Add these three lines to the top of `index.js` in the `src/` folder:
6175

6276
```js

0 commit comments

Comments
 (0)