Random Quote Machine in React - Feedback Pls

Random Quote Machine in React - Feedback Pls
0

#1

Hello All,

I have built my first react project and have used axios for the API call. I am requesting your feedback on the project plus also need your help with a couple of points:

  1. In the downloadAllQuotes() function, I have used a work-around “that” to access “this” indirectly in setState. How can I access “this” directly?

  2. In the downloadAllQuotes() function, I am not able to setState the quotesData object. How do I do this?

Link to codepen:

Link to the challenge:
https://learn.freecodecamp.org/front-end-libraries/front-end-libraries-projects/build-a-random-quote-machine

Thanks
Ali