-
Notifications
You must be signed in to change notification settings - Fork 0
/
template.html
29 lines (27 loc) · 892 Bytes
/
template.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<script crossorigin src="https://unpkg.com/react@16/umd/react.development.js"></script>
<script crossorigin src="https://unpkg.com/react-dom@16/umd/react-dom.development.js"></script>
<script src="https://unpkg.com/@babel/standalone/babel.min.js"></script>
<title>Document</title>
</head>
<body>
<div id="app"></div>
<script type="text/babel">
class App extends React.Component{
state = {}
render() {
return (
<div>
// your dynamic html/js
</div>
)
}
}
ReactDOM.render(< App /> , document.getElementById("app"));
</script>
</body>
</html>