@AndyAshley
Posted
Hey Jennifer! Great job on the challenge! I did notice that when I click on the fetch button it actually throws 2 requests for some reason, and displays one really quick before updating to the next one. The slip # doesn't change either. You could try putting the entire data.slip
in a const and then mapping the data with id
and advice
. Do your call for the entire data.slip
and then store the data.slip.id
in one const, and the data.slip.advice
in another const, then just throw them in where they go like you did with {quote}
. Hope that helps! Awesome job and happy coding!
Marked as helpful
@jennstirpe
Posted
@AndyAshley Thanks for catching that! It took a little while but I was able to fix it by changing how the useEffect was triggered. It looks a little cleaner now too so I appreciate it!
@AndyAshley
Posted
@jennstirpe no problem! I haven’t done that much with useEffect so I couldn’t be much help there, but figured I’d at least let ya know lol.