Submitted almost 2 years ago
Advice Generator using Svelte and Fetch - Advice Slip JSON API
@GermanHeim
Design comparison
SolutionDesign
Solution retrospective
Hello! First of all, thanks for looking through my app :)
I wanted to ask how I could move the fetch function to a separate javascript file. I guess I could create an 'api.js' file and then move the function to there, export it, and import it within 'App.svelte'.
Also, my CSS could have been better in many ways, right?
Again, thanks for looking through my code!
Community feedback
Please log in to post a comment
Log in with GitHubJoin our Discord community
Join thousands of Frontend Mentor community members taking the challenges, sharing resources, helping each other, and chatting about all things front-end!
Join our Discord