File tree 1 file changed +2
-2
lines changed
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -30,7 +30,7 @@ $ npm install use-async-effect2 c-promise2
30
30
$ yarn add use-async-effect2 c-promise2
31
31
```
32
32
## Usage example
33
- Minimal example with json request [ Live demo] ( https://codesandbox.io/s/friendly-murdock-wxq8u?file=/src/App .js )
33
+ Minimal example with json request [ Live demo] ( https://codesandbox.io/s/friendly-murdock-wxq8u?file=/src/TestComponent .js )
34
34
```` jsx
35
35
import React from " react" ;
36
36
import {useState } from " react" ;
@@ -50,7 +50,7 @@ function JSONViewer(props) {
50
50
return < div> {text}< / div> ;
51
51
}
52
52
````
53
- Example with a timeout & error handling ([ Live demo] ( https://codesandbox.io/s/async-effect-demo1-vho29 ) ):
53
+ Example with a timeout & error handling ([ Live demo] ( https://codesandbox.io/s/async-effect-demo1-vho29?file=/src/TestComponent.js ) ):
54
54
```` jsx
55
55
import React from " react" ;
56
56
import {useState } from " react" ;
You can’t perform that action at this time.
0 commit comments