+ 1
React error
Hello everyone. I have just started learning react and i tried to create a simple render function on sololearn but it is showing this error. Check this code https://code.sololearn.com/W6Lnl42uTF9R/?ref=app Tell me if there is any way to write react on sololearn.
3 Respuestas
+ 1
In the script tag where you render the elements, add this attribute : type="text/babel"
Bye
+ 1
As JSX is part from Babel, and Babel is a JS compiler, you must specify that you want to use it with the type attribute
0
Thank you so much. It's working now.