Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
vigzmv committed Sep 13, 2020
1 parent 441a3d9 commit 079c2e4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Expand Up @@ -21,7 +21,7 @@ Inspired by [fetch-suspense](https://github.com/CharlesStover/fetch-suspense), b
```js
import usePromise from 'react-promise-suspense';

const fetchJson = input => fetch(input).then(res => console.log(res) || res.json());
const fetchJson = input => fetch(input).then(res => res.json());

const MyFetchingComponent = () => {
// usePromise(Promise, [inputs,],)
Expand Down

0 comments on commit 079c2e4

Please sign in to comment.