dan
3 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
7 additions and
4 deletions
-
static/html/single-file-example.html
|
|
@ -12,11 +12,14 @@ |
|
|
|
<body> |
|
|
|
<div id="root"></div> |
|
|
|
<script type="text/babel"> |
|
|
|
|
|
|
|
function MyApp() { |
|
|
|
return <h1>Hello, world!</h1>; |
|
|
|
} |
|
|
|
|
|
|
|
ReactDOM.render( |
|
|
|
<h1>Hello, world!</h1>, |
|
|
|
document.getElementById('root') |
|
|
|
); |
|
|
|
const container = document.getElementById('root'); |
|
|
|
const root = ReactDOM.createRoot(container); |
|
|
|
root.render(<MyApp />); |
|
|
|
|
|
|
|
</script> |
|
|
|
<!-- |
|
|
|