isLoading set to false

This commit is contained in:
sagar
2020-01-09 20:28:00 +05:30
parent ea559a1e66
commit 19f41b21e2

View File

@ -50,7 +50,7 @@ const useAsync = (fn, options = {}) => {
```jsx ```jsx
const App = () => { const App = () => {
const handleSubmit = (args) => { // args {foo: bar} const handleSubmit = (args) => { // args { foo: bar }
const url = "https://jsonplaceholder.typicode.com/todos" const url = "https://jsonplaceholder.typicode.com/todos"
return fetch(url).then(response => response.json()) return fetch(url).then(response => response.json())
} }