Untitled

mail@pastecode.io avatar
unknown
plain_text
a year ago
717 B
2
Indexable
Never
HTML:
--------

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <link rel="stylesheet" href="index.css">
    <title>First React</title>
    <script crossorigin src="https://unpkg.com/react@18/umd/react.development.js"></script>
    <script crossorigin src="https://unpkg.com/react-dom@18/umd/react-dom.development.js"></script>
</head>
<body>
    <div id="root"></div>
   <script src="index.js" type="text/babel"></script>
</body>
</html>

JavaScript:
-----------

ReactDOM.render(<h1>Hejsansvejsan!</h1>, document.getElementById("root"))