You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
**In terminal window 2** (your react app to test `use-http` in)
20
+
```sh
21
+
create-react-app use-http-sandbox
22
+
cd ./use-http-sandbox
23
+
yarn
24
+
yarn link use-http
25
+
```
26
+
**In terminal window 1** (inside your forked `use-http` directory)
27
+
```sh
28
+
npm link ../use-http-sandbox/node_modules/react
29
+
npm link ../use-http-sandbox/node_modules/react-dom
30
+
yarn build:watch
31
+
```
32
+
**In terminal window 2** (your react app to test `use-http` in)
33
+
```sh
34
+
yarn start
35
+
```
36
+
37
+
### 3. **Develop**
38
+
Now just go into your `use-http-sandbox/src/App.js` and import use-http and now you can develop. When you make changes in `use-http` it should cause `use-http-sandbox` to refresh `localhost:3000`.
39
+
40
+
### 4. **Test**
41
+
Once you're done making your changes be sure to make some tests and run all of them. What I do is open up 3 different panes in the same iTerm2 window by pressing `⌘ + D` on mac 2 times. In the far left I do `yarn build:watch`, in the middle I do `yarn test:browser:watch` (where you'll probably be writing your tests) and in the 3rd window I do `yarn test:server:watch`. It looks like this.
0 commit comments