+ 2
React: Unexpected Token
I'm trying to follow along with the React and Redux course, I've tried to fix the error lots of times but I just can't fix it at all annoyingly. It's probably something obvious. https://code.sololearn.com/WHB3X503y0OG/?ref=app
6 Antworten
+ 2
https://code.sololearn.com/WbDPM8DCUM1Q/#html
+ 3
Clueless Coder
Fisrt problem: <button onClick={increment}</button> - here you forgot the greater-than sign(>) that should be at the end of "{increment}".
But I see how there is some confusion(), the caret(^) is pointing at the wrong character it should be pointing at the less-than sign(<) because the interpreter sees it as out of place because there is a greater-than sign at end of the line.
This is based on the error message from Sololearn's Android App vs the error
message from Sololearn's website (Chrome DevTools).
The second problem is the semicolon at line 20 you need to remove that.
+ 2
Emanuel Maliaño Thanks, although I was hoping someone would explain what I did wrong in the code.
+ 2
2 mistakes:
Line 20, missing >
Line 22, wrong placement of ;