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
|
|
@ -13,10 +13,13 @@ |
|
|
|
<div id="root"></div> |
|
|
|
<script type="text/babel"> |
|
|
|
|
|
|
|
ReactDOM.render( |
|
|
|
<h1>Hello, world!</h1>, |
|
|
|
document.getElementById('root') |
|
|
|
); |
|
|
|
function MyApp() { |
|
|
|
return <h1>Hello, world!</h1>; |
|
|
|
} |
|
|
|
|
|
|
|
const container = document.getElementById('root'); |
|
|
|
const root = ReactDOM.createRoot(container); |
|
|
|
root.render(<MyApp />); |
|
|
|
|
|
|
|
</script> |
|
|
|
<!-- |
|
|
|