Can anyone tell me what's wrong here? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

Can anyone tell me what's wrong here?

I've already tested it in another application it works very well but here it returns the syntax error < https://code.sololearn.com/WGaBlaITJ8ip/?ref=app

5th Oct 2022, 7:55 PM
Félix Zamdamela
Félix  Zamdamela - avatar
2 Answers
+ 6
You need to add type="text/babel" to your script tag to use jsx. also remove the unnecessary </div> after you button
5th Oct 2022, 9:07 PM
Toni Isotalo
Toni Isotalo - avatar
+ 3
Thanks bro it's finally working
5th Oct 2022, 9:27 PM
Félix Zamdamela
Félix  Zamdamela - avatar