A
A
Ankozar2021-05-03 18:29:59
React
Ankozar, 2021-05-03 18:29:59

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>


What the hell, isn't it? It seems that both files are pulled up ...

609016e917e34725907951.jpeg

At the same time:

6090173924bbf541423637.jpeg

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question