use jsx extension for react stuff

This commit is contained in:
Thomas Ruoff
2020-11-28 14:12:42 +01:00
parent abc9081da2
commit f6e08255a6
12 changed files with 33 additions and 12 deletions

View File

@@ -8,7 +8,8 @@ const Header = () => {
"//api.giphy.com/v1/gifs/random?tag=christmas&api_key=3ziHSa4ptYJdv2dOuawgzpBhhiW09Ss1"
);
const { data } = await response.json();
setGifUrl(data.image_mp4_url);
console.log(data)
setGifUrl(data.image_webp_url);
}
getGif();