Edit: I was trying to access the newQuote and newAuthor thinking they would update before tweetLink but it looks like they all update at once. I changed this.state.newQuote and this.state.newAuthor to match this.state.quotes[randomIndex][0] and [1] respectively and it fixed the problem: