diff --git a/examples/browser-create-react-app/README.md b/examples/browser-create-react-app/README.md
index 1d07fd7fc3..32effb8912 100755
--- a/examples/browser-create-react-app/README.md
+++ b/examples/browser-create-react-app/README.md
@@ -2,28 +2,41 @@
A minimal demonstration of how to use js-ipfs in a `create-react-app` generated app.
-It boots up a js-ipfs instance via a custom React hook in `./src/hooks/use-ipfs-factory.js`, which is called from `./src/App.js`, which is where the magic happens.
+It boots up a js-ipfs instance (an IPFS node) via a custom React hook in `./src/hooks/use-ipfs-factory.js`, which is called from `./src/App.js`. Once the IPFS node is set up, `App.js` displays its ident and its version number.
-![Screen shot of the js ipfs node id info](./screenshot.png)
+> _Remember that a Peer ID of an IPFS node is [the multihash of the public key of this node](https://github.com/libp2p/specs/blob/master/peer-ids/peer-ids.md#peer-ids), and the public-private key pair of a node is generated by typing `ipfs init`._
-This project was bootstrapped with [Create React App](https://github.com/facebook/create-react-app). **v2.1.3**
+![Screen shot of the js ipfs node id info](./images/screenshot.png)
-## Before you start
-First clone this repo, install dependencies in the project root and build the project.
+**Note**: this example is useful to learn how to spawn IPFS from a web page. It is also possible to [spawn an IPFS daemon from the command line](https://docs.ipfs.io/install/command-line/) with `ipfs daemon`. While self-hosting is advised, one can also delegate IPFS operations to a third-party like Infura. See tutorials [here](https://blog.infura.io/part-2-getting-started-with-ipfs-on-infura/) and [here](https://blog.infura.io/part-2-getting-started-with-ipfs-on-infura/).
+
+## To start
+
+First clone the whole repo, install dependencies limited to this project `browser-create-react-app` and run the demo.
```console
$ git clone https://github.com/ipfs/js-ipfs.git
-$ cd js-ipfs
+$ cd js-ipfs/examples/browser-create-react-app
$ npm install
-$ npm run build
+$ npm start
```
+## Call structure in `App.js`
+All React applications store their main logic in `App.js`:
+* `App.js` renders the cosmetics of the demo and call `useIpfs` to retrieve the `id` of the node
+* `useIpfsFactory.js` initialises and closes the IPFS local node
+* `useIpfs.js` does the actual calls to IPFS to retrieve the property specified in argument (here the retrieved property is `id`, requested from `App.js`)
+
+## Annexes
+### Console message `[HMR] Waiting for update signal from WDS...`
-## Available Scripts
+This message comes from the hot reload capability of webpack, that can update the web app every time you save your development code. To remove it, see here: https://stackoverflow.com/questions/59695102/reactjs-console-error-hmr-waiting-for-update-signal-from-wds
+
+### Available Scripts from create-react-app
In the project directory, you can run:
-### `npm start`
+#### `npm start`
Runs the app in the development mode.
Open [http://localhost:3000](http://localhost:3000) to view it in the browser.
@@ -31,57 +44,25 @@ Open [http://localhost:3000](http://localhost:3000) to view it in the browser.
The page will reload if you make edits.
You will also see any lint errors in the console.
-### `npm test`
+#### `npm test`
Launches the test runner in the interactive watch mode.
See the section about [running tests](https://facebook.github.io/create-react-app/docs/running-tests) for more information.
-### `npm run build`
+#### `npm run build`
Builds the app for production to the `build` folder.
It correctly bundles React in production mode and optimizes the build for the best performance.
The build is minified and the filenames include the hashes.
-Your app is ready to be deployed!
-
-See the section about [deployment](https://facebook.github.io/create-react-app/docs/deployment) for more information.
+Your app is ready to be deployed! Read how to host a [single page](https://docs.ipfs.io/how-to/websites-on-ipfs/single-page-website/) or an [entire website](https://docs.ipfs.io/how-to/websites-on-ipfs/multipage-website/#prerequisites) on IPFS.
-### `npm run eject`
+But with modern hosting services like Heroku, Netlity or Fleek, you can skip the build because they will do a complete github deployment for you. See the React official page about [deployment](https://facebook.github.io/create-react-app/docs/deployment) for more information.
-**Note: this is a one-way operation. Once you `eject`, you can’t go back!**
-
-If you aren’t satisfied with the build tool and configuration choices, you can `eject` at any time. This command will remove the single build dependency from your project.
-
-Instead, it will copy all the configuration files and the transitive dependencies (Webpack, Babel, ESLint, etc) right into your project so you have full control over them. All of the commands except `eject` will still work, but they will point to the copied scripts so you can tweak them. At this point you’re on your own.
-
-You don’t have to ever use `eject`. The curated feature set is suitable for small and middle deployments, and you shouldn’t feel obligated to use this feature. However we understand that this tool wouldn’t be useful if you couldn’t customize it when you are ready for it.
## Learn More
-You can learn more in the [Create React App documentation](https://facebook.github.io/create-react-app/docs/getting-started).
-
-To learn React, check out the [React documentation](https://reactjs.org/).
-
-### Code Splitting
-
-This section has moved here: https://facebook.github.io/create-react-app/docs/code-splitting
-
-### Analyzing the Bundle Size
-
-This section has moved here: https://facebook.github.io/create-react-app/docs/analyzing-the-bundle-size
-
-### Making a Progressive Web App
-
-This section has moved here: https://facebook.github.io/create-react-app/docs/making-a-progressive-web-app
-
-### Advanced Configuration
-
-This section has moved here: https://facebook.github.io/create-react-app/docs/advanced-configuration
-
-### Deployment
-
-This section has moved here: https://facebook.github.io/create-react-app/docs/deployment
+You can learn more on IPFS API in the [IPFS documentation](https://docs.ipfs.io/) and [IPFS npm documentation](https://www.npmjs.com/package/ipfs-http-client).
-### `npm run build` fails to minify
+Details how to use the File System abstraction of IPFS (add, cat, egt, ls etc.) are [here](https://github.com/ipfs/js-ipfs/blob/master/docs/core-api/FILES.md)
-This section has moved here: https://facebook.github.io/create-react-app/docs/troubleshooting#npm-run-build-fails-to-minify
diff --git a/examples/browser-create-react-app/screenshot.png b/examples/browser-create-react-app/images/screenshot.png
similarity index 100%
rename from examples/browser-create-react-app/screenshot.png
rename to examples/browser-create-react-app/images/screenshot.png
diff --git a/examples/browser-create-react-app/src/App.js b/examples/browser-create-react-app/src/App.js
index f742be5208..a3e9bc9adf 100755
--- a/examples/browser-create-react-app/src/App.js
+++ b/examples/browser-create-react-app/src/App.js
@@ -4,8 +4,11 @@ import useIpfs from './hooks/use-ipfs.js'
import logo from './ipfs-logo.svg'
const App = () => {
- const { ipfs, ipfsInitError } = useIpfsFactory({ commands: ['id'] })
- const id = useIpfs(ipfs, 'id')
+ // there is no change when we comment out the args of useIpfsFactory -> remove args?
+ const { ipfs, ipfsInitError } = useIpfsFactory(/*{ commands: ['id'] }*/)
+ // retrieve id of the current peer (see https://github.com/ipfs/js-ipfs/blob/master/docs/core-api/MISCELLANEOUS.md)
+ const id = useIpfs(ipfs, 'id')
+
return (