Skip to content

Commit d7d5da3

Browse files
Pedro Massxaviergonz
authored andcommitted
docs(getting started): update CRA step (#1401)
* docs(getting started): update CRA step It's now recommended to use `npx` for installs https://github.com/facebook/create-react-app#quick-overview * docs(getting-started): update mobx installs Latest CRA is using `yarn.lock` files, so keeping inline with that by using `yarn` instead of `npm`
1 parent 18bf6a8 commit d7d5da3

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

docs/getting-started.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,14 +23,13 @@ For each example you'll find a CodeSandbox playground link. You can start from t
2323
Setting up the whole environment for a React project involves transpilers, bundlers, linters, etc., and setting them up may become very tedious and not fun. Thanks to `create-react-app` setting up all those tools becomes as easy as typing a couple of lines in your terminal.
2424

2525
```
26-
npm install -g create-react-app
27-
create-react-app mst-todo
26+
npx create-react-app mst-todo
2827
```
2928

3029
Next install `mobx`, `mobx-react` and `mobx-state-tree` dependencies.
3130

3231
```
33-
npm install mobx mobx-react mobx-state-tree --save
32+
yarn add mobx mobx-react mobx-state-tree
3433
```
3534

3635
Now you can run `npm run start` and a basic React page will show up. You're all set up and can begin editing the project files!

0 commit comments

Comments
 (0)