Tell us what’s happening:
I’ve created the random quote machine using React and overall I complete the Test Suite tests, but functionally the app is broken.
When clicking “Tweet This Quote” the link disappears and you can no longer tweet new quotes. As far as I can tell, the problem is with the ?text= section of the tweet URL, but I don’t know how to fix it.
I’ve tried a few things like using the HTML code, URI code, and just straight up moving it around and haven’t found a solution that works. When moving it into my encodeURIComponent() function, the link stays on the page but then the actual tweet link is broken.
Any thoughts? Thanks so much!
Your code so far
Here is what I have on codepen:
Your browser information:
User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:71.0) Gecko/20100101 Firefox/71.0
.
Challenge: Build a Random Quote Machine
Link to the challenge: