0
What's wrong with my code
6 Respostas
+ 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
0
Hi, Denzel TAKYI . syntax error, write Import with lower character.
0
Denzel TAKYI
You should add script type 'text/bable'
script type=text/babel
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
0
Ok,thanks