Created
December 7, 2021 16:26
-
-
Save yaralahruthik/1d09c7dd27d4b525a6152daee997c6f6 to your computer and use it in GitHub Desktop.
This file contains 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
export const getTodos = () => { | |
return fetch('https://jsonplaceholder.typicode.com/todos').then((res) => | |
res.json() | |
); | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment