Hello all. I’m nearly finished my Quote Machine Project in React, but I’ve run into a stumbling block; the Twitter button.
-The first button passes test #10 (because it uses a href), but it doesn’t Tweet the quote properly. When I try to pass this.state.whattever into the href it was literally using “this.state.whatever”.
-The second button fails the test (because the href is blank), but it Tweets the quote properly. With onclick it calls a function which encodes the quote and author, and opens a new window for Twitter. It’s a dead link so it doesn’t reload the page.
If the second button has the proper functioning, does it matter that it fails the test? Or maybe there’s a better way to do this?