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

Advice Generator using Axios to send request

Alvaro 70

@BrazilianMemeMaster

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

Solution retrospective


I did it both using fetch and axios (commented out the fetch code), and I'd really appreciate if someone tell me if using axios in this case is a good choice, or it doesn't matter at all.

Community feedback

Divine Obeten 2,415

@Deevyn9

Posted

Hi Alvaro,

Great work on your project, In my opinion, using axios is the better option, the code still works, it is shorter, and it is more readable too, so it is the better option.

Happy coding

Marked as helpful

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