Created
May 11, 2021 10:56
-
-
Save SuperOleg39/e3ad8989e617ef94a09a7e9c312e4694 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const useAsync = (options) => { | |
| ... | |
| } | |
| const Component = (props) => { | |
| const [result, error, loading] = useAsync({ fn: () => get('/url') }) | |
| ... | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment