Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found

Submitted

React Advice Generator Responsive

Charles 430

@charlesmiller0412

Desktop design screenshot for the Advice generator app coding challenge

This is a solution for...

  • HTML
  • CSS
  • JS
  • API
2junior
View challenge

Design comparison


SolutionDesign

Community feedback

Bao Dang 110

@weebao

Posted

Love your website. You can use fetch('https://api.adviceslip.com/advice', { cache: 'no-cache' }) instead of fetching with cache so that the advice will change every time you click instead of staying the same.

Marked as helpful

1

Charles 430

@charlesmiller0412

Posted

@weebao Thanks for the tip! I added it and works great! Originally it did change on click but had a slight delay (I'm assuming from useEffect). This is nice to know for future API projects.

1
Bao Dang 110

@weebao

Posted

@charlesmiller0412 Glad to help :)

0

Please log in to post a comment

Log in with GitHub
Discord logo

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