testing react/next.js
This commit is contained in:
parent
54378f319b
commit
70dc40a0b9
0
react_test/app.js
Normal file
0
react_test/app.js
Normal file
13
react_test/tutorial/index.html
Normal file
13
react_test/tutorial/index.html
Normal 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>
|
Loading…
Reference in a new issue