testing react/next.js

This commit is contained in:
Geir Okkenhaug Jerstad 2024-09-05 11:25:53 +02:00
parent 54378f319b
commit 70dc40a0b9
2 changed files with 13 additions and 0 deletions

0
react_test/app.js Normal file
View file

View file

@ -0,0 +1,13 @@
<html>
<body>
<div id="app"></div>
<script src="https://unpkg.com/react@18/umd/react.development.js"></script>
<script src="https://unpkg.com/react-dom@18/umd/react-dom.development.js"></script>
<script src="https://unpkg.com/@babel/standalone/babel.min.js"></script>
<script type="text/jsx">
const app = document.getElementById('app');
const root = ReactDOM.createRoot(app);
root.render(<h1>Develop. Preview. Ship.</h1>)
</script>
</body>
</html>