Tell us what’s happening:
Tldr: The setState is not working in getNewQuote(). Line 50 in the JS editor.
First off, I want to say after finishing the Front End Library section(apart from the projects), I felt really overwhelmed trying to make sense of how to put everything together into an actual project. I plan to make my own project, but I was watching a YouTube video of some one going through their solution. In the “getNewQuote” section, they use an API to fetch the data and set the state of the text and authors, which does work. I thought I would instead make my own array and set the state from there, but it doesn’t work. Now I’ve even tried setting the state manually to a string, but it doesn’t set the state. Any idea what the issue is?
Your code so far
Your browser information:
User Agent is:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/88.0.4324.150 Safari/537.36.
Challenge: Build a Random Quote Machine
Link to the challenge: