New course! Every coder should learn Generative AI!
Try a free lesson0
How to JSX in Sololearn?
Is it possible to process JSX code from my web-template here? I build simple todo list application last day with react, styled-components and I wanna share it here...
9 Answers
+ 5
Yes you can use JSX in Sololearn. Just add the Babel.js cdn in your html file.
+ 2
Show your code
+ 2
Mac, linux or windows ꧁Souptik Nath꧂
+ 1
https://code.sololearn.com/WnGyVebDSsZT
Here is the app
+ 1
I wouldn't recommend using sololearn for react app development
+ 1
Write your JSX in html using script tag with type as text/babel.
+ 1
Bhavya Then where React development should be done?
0
I get " Uncaught SyntaxError: Unexpected token '<' at line 165 " while starting script where at 165 line I place " const AddButton = () => <AddButtonWrapper children="➕" /> "
Also I place required libs at bottom of the body tag.