hey there. I’ve been trying to implement the random quote generator however the codepen keeps producing an error that claims I did an unexpected declaration(token) in my React project. When I try to troubleshoot the error I realize that its referring to my declarations of div elements. It has therefore failed to run, link to code hereRandom Quote Generator . Please help me figure it out cause I’ve tried in vain.
You can do it settings or you can put in the head:
<script src="https://firstname.lastname@example.org/umd/react.development.js"></script> <script src="https://email@example.com/umd/react-dom.development.js"></script>
You should use the
href attribute in an anchor (
<a> ) element, not in a
<a id="tweet-quote" className="content-display" href="https://twitter.com/intent/tweet" target="_blank" > <button id="tweet-quote content-display"> <i></i> Tweet </button> </a>
and its working (you need scripts and babel)
Thank you so much, I needed to set the preprocessor to Babel. Its running now. Just need to look for the run tests tab now.