0.20.2 • Published 3 years ago
@vulppi/react-use-async v0.20.2
useAsync
const Component: React.FC = () => {
const { loading, error, value } = useAsync(
fetch('https://jsonplaceholder.typicode.com/todos/1'),
)
return <></>
}
const Component: React.FC = () => {
const { loading, error, value } = useAsync(
fetch('https://jsonplaceholder.typicode.com/todos/1'),
)
return <></>
}