+ 1
React: Unexpected token "<"
Why have I got an error? I'm using a class component and it returns a JSX div, but it keeps saying "unexpected token '<'" https://code.sololearn.com/WkWEEXSH1k0O/?ref=app
4 Antworten
+ 4
//</script><script type="text/babel">
+ 4
Ipang React is really annoying to run in different environments so I'm not surprised.
It's most likely when the program halts/stops. This could be because of debugging or error messages
+ 2
🤦♂️ I knew it was a stupid typo!
+ 1
Clueless Coder
Idk if this was relevant. But as I view your code in Chrome browser, there's a red button to the left of line number (at line 8). It shows a message when I tap on the red button.