From 079c2e48cd61ff9daef62b7f82639a37457660ea Mon Sep 17 00:00:00 2001 From: Vignesh M Date: Mon, 14 Sep 2020 00:13:12 +0530 Subject: [PATCH] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 129181e..68a8a0b 100644 --- a/README.md +++ b/README.md @@ -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,],)