Dries
KPCKevin Powell - Community
•Created by Dries on 12/22/2023 in #front-end
Fetch request returns Promise
Hey ,
I got a country page with links to border countries , now are the border country names not the full country name so I need to make a fetch request for the full name
but when I do the result becomes a Promise (see picture 1)
How can I access this value?
I tried to fix this with .then it gives me the correct data. But then I can't put the data inside my component (see image 2 example 2)
getBorderCountryName() fetches the URL of the API
GitHub code : https://github.com/Jenskiii/countriesApi-dec2023-react
live site : https://countries-api-dec2023-react.vercel.app/countries/MK
7 replies
KPCKevin Powell - Community
•Created by Dries on 10/30/2023 in #front-end
remove white space from SVG in react
5 replies
KPCKevin Powell - Community
•Created by Dries on 8/8/2023 in #front-end
Beyond CSS course (sass watch with npm, not auto updating)
Hey ,
i just started the Beyond CSS course and I'm at the point where you have to use npm start
to watch the files but when i do this the live server will only update after page refresh
is there a way to solve this because it get's quite annoying to keep refreshing the page
2 replies