+ 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

25th Jun 2020, 6:51 PM
Clueless Coder
Clueless Coder - avatar
6 Respuestas
+ 2
https://code.sololearn.com/WbDPM8DCUM1Q/#html
26th Jun 2020, 8:03 AM
ODLNT
ODLNT - avatar
+ 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.
25th Jun 2020, 11:39 PM
ODLNT
ODLNT - avatar
+ 2
Emanuel Maliaño Thanks, although I was hoping someone would explain what I did wrong in the code.
25th Jun 2020, 7:15 PM
Clueless Coder
Clueless Coder - avatar
+ 2
2 mistakes: Line 20, missing > Line 22, wrong placement of ;
26th Jun 2020, 12:22 AM
Calviղ
Calviղ - avatar
+ 2
Calviղ ODLNT Thanks. It was something obvious after all. 🙄
26th Jun 2020, 8:06 AM
Clueless Coder
Clueless Coder - avatar