7th Mar 2022, 9:47 AM
Denzel TAKYI
Denzel TAKYI - avatar
6 Answers
+ 1
Debug: const page = <div> <h1>I am learning React</h1> <h3>React is hard</h3> <ul> <li>React and Redux can be used for apps</li> <li>React runs in both html and javasript</li> </ul> </div> ReactDOM.render( page, document.getElementById("root")) https://code.sololearn.com/WHB64e0Hqx0Q/?ref=app
7th Mar 2022, 11:09 AM
Solo
Solo - avatar
0
Hi, Denzel TAKYI . syntax error, write Import with lower character.
7th Mar 2022, 9:55 AM
Maksat Ramazanov
Maksat Ramazanov - avatar
0
Denzel TAKYI You should add script type 'text/bable' script type=text/babel
7th Mar 2022, 10:14 AM
A͢J
A͢J - avatar
0
Yes , AJ is right. Babel or Bable is a compiler , translating JSX to Javascript --> React code to Javascript code . To use compiler's script you adding it at the top of html. And to show compiler what code to compile you using text/bable attribute in type
7th Mar 2022, 10:31 AM
Maksat Ramazanov
Maksat Ramazanov - avatar
0
Ok,thanks
7th Mar 2022, 10:41 AM
Denzel TAKYI
Denzel TAKYI - avatar