Spinner while API content is loading

Solution retrospective
Created an "isLoading" state which allowed to render a spinner, and to disable the button.
What challenges did you encounter, and how did you overcome them?Found a trick for triggering the fetch(API) on useEffect.
What specific areas of your project would you like help with?For mobile screen, onTouchStart and onTouchEnd used for having a hover-like effect. But the effect is a bit strange. Would appreciate any feedback.
Please log in to post a comment
Log in with GitHubCommunity feedback
No feedback yet. Be the first to give feedback on Guillermo Dominguez's solution.
Join 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