Random Quote Machine React

Hey everyone,

Long time user, first time poster.

Here’s the link to my current project:

You can see where I console.log the response I get back from performing a GET request to my public jsonbin database.

In the render, you can see where I console.log state and it ends up being empty. Through my own observation, I’m currently concluding that it does not re-render.

I’m wondering how I resolve this. Some of the methods that I can think of off the top of my head are componentDidMount or componentWillMount, but I’ll have to check on whether they’re deprecated at this point in React v16.

If anyone can point out a potential fix, I’d greatly appreciate it.

Cheers

You must use this.state instead of using only state.

Beautiful. You just steered me down the right path.
Thank you.