Design comparison
SolutionDesign
Solution retrospective
Hey guys!
The finished solution gave me some issues, mainly to do with the offset button;
Is there a better way to implement that button offset compared to the hacky way I've done here?
Thanks in advance!!
Community feedback
- @ChrisAndrewsDevPosted over 2 years ago
It turns out the API call isn't happening on first page load too! Any ideas?
0@s0alkenPosted over 2 years ago@ChrisAndrewsDev Hello, it is because you are calling getQuote() only when the button is clicked, I called getQuote() in line 10 (just after the declaration) and it worked.
Marked as helpful1
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