Last active
September 16, 2022 19:32
-
-
Save lcsjunior/d438e4dd5ac513415d57d15a2d975165 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
import axios from 'axios'; | |
const jsonify = (resp) => resp.data; | |
const fetcher = (url) => axios.get(url).then(jsonify); | |
export { jsonify, fetcher }; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment