How to work with a consumption API? (with Svelte)

I genuinely have no idea what I'm doing here. I'm watching some videos on people kinda using it, but it's all vanilla JS, I'm not really sure where I'm storing this data in Svelte. In a nutshell, I want to use the Pokemon API to get say.. 10 pokemon, but I only want to use their images for my memory-card game, to replace the numbers I have there currently. https://github.com/callum-laing?tab=repositories https://cdl-memory-card.netlify.app/ TBH, I could just grab 10 random images from google and use those, but I need to learn how to use a consumption API, as I've never done this, but it's rather confusing... I'm just not sure where to place it in my svelte codebase.
0 Replies
No replies yetBe the first to reply to this messageJoin