Skip to content

Commit 075d362

Browse files
committed
website: add public/bundle.html
1 parent 9c22451 commit 075d362

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed

public/bundle.html

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
<!DOCTYPE html>
2+
<html lang="en">
3+
<head>
4+
<script src="https://unpkg.com/@babel/[email protected]/babel.min.js" crossorigin></script>
5+
<script src="https://unpkg.com/[email protected]/umd/react.development.js" crossorigin></script>
6+
<script src="https://unpkg.com/[email protected]/umd/react-dom.development.js" crossorigin></script>
7+
<script src="https://unpkg.com/@uiw/codepen-require-polyfill/index.js" crossorigin></script>
8+
<title>Run Web</title>
9+
<meta name="description" content="Online Code Editor for Rapid Web Development." />
10+
<meta name="keywords" content="react,component,js,css,html,preview,editor" />
11+
</head>
12+
<body>
13+
<a href="https://uiwjs.github.io/react-run-web">@uiw/react-run-web</a>
14+
<div id="container" style="padding: 24px"></div>
15+
<script src="https://unpkg.com/@uiw/react-run-web/dist/run-web.min.js"></script>
16+
<script type="text/babel">
17+
import RunWeb from '@uiw/react-run-web';
18+
const Demo = () => {
19+
return (
20+
<RunWeb
21+
css="div {color:red;}"
22+
js="console.log('hello world!')"
23+
html="<div>hello world!</div>"
24+
/>
25+
);
26+
}
27+
ReactDOM.render(<Demo />, document.getElementById('container'));
28+
</script>
29+
</body>
30+
</html>

0 commit comments

Comments
 (0)