loading...

Discussion on: HTTP request with ES6 tagged templates

vaheqelyan profile image
Vahe Author
async function getUser(user) {
  const { data } = await get`https://api.github.com/users/${user}`;
  return data;
}
getUser("google").then(res => {
  console.log(res);
});