How to JSX in Sololearn? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

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...

21st Nov 2020, 6:13 PM
Yuri
Yuri - avatar
9 Answers
+ 5
Yes you can use JSX in Sololearn. Just add the Babel.js cdn in your html file.
21st Nov 2020, 6:22 PM
Souptik Nath
Souptik Nath - avatar
+ 2
Show your code
21st Nov 2020, 6:59 PM
Souptik Nath
Souptik Nath - avatar
+ 2
Mac, linux or windows ꧁Souptik Nath꧂
22nd Nov 2020, 8:59 AM
Bhavya
Bhavya - avatar
21st Nov 2020, 7:15 PM
Yuri
Yuri - avatar
+ 1
I wouldn't recommend using sololearn for react app development
21st Nov 2020, 11:04 PM
Bhavya
Bhavya - avatar
+ 1
Write your JSX in html using script tag with type as text/babel.
22nd Nov 2020, 8:35 AM
Souptik Nath
Souptik Nath - avatar
+ 1
Bhavya Then where React development should be done?
22nd Nov 2020, 8:36 AM
Souptik Nath
Souptik Nath - avatar
21st Nov 2020, 6:27 PM
Sumit Programmer😎😎
Sumit Programmer😎😎 - avatar
0
I get " Uncaught SyntaxError: Unexpected token '<' at line 165 " while starting script where at 165 line I place " const AddButton = () => <AddButtonWrapper children="&#10133;" /> " Also I place required libs at bottom of the body tag.
21st Nov 2020, 6:58 PM
Yuri
Yuri - avatar