Answer the question
In order to leave comments, you need to log in
Why won't reactdom connect?
<body>
<div class="root">
</div>
<script crossorigin src="https://unpkg.com/[email protected]/umd/react.development.js"></script>
<script crossorigin src="https://unpkg.com/[email protected]/umd/react-dom.development.js"></script>
<script>
const App = ()=>{
return React.createElement("h1", {id: "hello", className: "hello"},
"Hello from React")
}
ReactDom.render(React.createElement(App), document.querySelector('root'))
</script>
</body>
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question