@bashiroglu
Posted
@davidomarf this looks great, especially I notice you have used typescript. but code looks a little bit messy, in general. And here you use both promise and async-await at the same time. I am not sure about it.
const fetchCountries = async () =>
await fetch("https://restcountries.eu/rest/v2/all").then((res) => res.json());
Good luck.
@davidomarf
Posted
@bashiroglu Ah, you're right. I don't know what I was thinking with that function. Thanks for pointing it out.
I'll be maintaining it tomorrow and try to clean it, do some final optimizations and add animations.
@bashiroglu
Posted
@davidomarf you are quite welcome,