1
0
mirror of https://github.com/oceanprotocol/docs.git synced 2024-11-01 15:55:34 +01:00

Update content/tutorials/react-setup.md

Co-Authored-By: jernejpregelj <jernej.pregelj88@gmail.com>
This commit is contained in:
Matthias Kretschmann 2018-12-06 09:59:24 +01:00 committed by GitHub
parent 176d82f858
commit a86f2473e2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -19,7 +19,7 @@ This tutorial shows how you can build a basic [React](https://reactjs.org/) app
1. Run `npx create-react-app marketplace` in you terminal. This will create a folder named `marketplace` with a boilerplate React app. 1. Run `npx create-react-app marketplace` in you terminal. This will create a folder named `marketplace` with a boilerplate React app.
2. Move to your app directory with `cd marketplace` and run `npm install @oceanprotocol/squid web3`. This adds the Ocean Protocol JavaScript library and Web3 packages to the app. 2. Move to your app directory with `cd marketplace` and run `npm install @oceanprotocol/squid web3`. This adds the Ocean Protocol JavaScript library and Web3 packages to the app.
3. At this point you can already run `yarn start` which starts the app in your browser at [localhost:3000](http://localhost:3000). 3. At this point you can already run `npm start` which starts the app in your browser at [localhost:3000](http://localhost:3000).
4. To clear the React spinning icon, open `src/App.js` and modify the source to: 4. To clear the React spinning icon, open `src/App.js` and modify the source to:
```javascript ```javascript