Created
September 25, 2017 19:10
-
-
Save matheus-rossi/e07fafa0b46401058f39664a6ff183c1 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
const getExchangeRate = (from, to) => { | |
return axios.get(`http://api.fixer.io/latest?base=${from}`).then((res)=> { | |
return res.data.rates[to] | |
}) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment