v1.0.14
npm i @uiw/react-run-web@1.0.14
- π fix: Fix ref issue. e02c72b @jaywcjlove
- π chore: update public/bundle.html 4cd96a9 @jaywcjlove
Bundle Example: https://uiwjs.github.io/react-run-web/bundle.html
<!DOCTYPE html>
<html lang="en">
<head>
<script src="https://unpkg.com/@babel/standalone@7.17.x/babel.min.js" crossorigin></script>
<script src="https://unpkg.com/react@17.x/umd/react.development.js" crossorigin></script>
<script src="https://unpkg.com/react-dom@17.x/umd/react-dom.development.js" crossorigin></script>
<script src="https://unpkg.com/@uiw/codepen-require-polyfill/index.js" crossorigin></script>
</head>
<body>
<a href="https://uiwjs.github.io/react-run-web">@uiw/react-run-web</a>
<div id="container" style="padding: 24px"></div>
<script src="https://unpkg.com/@uiw/react-run-web/dist/run-web.min.js"></script>
<script type="text/babel">
import RunWeb from '@uiw/react-run-web';
const Demo = () => {
return (
<RunWeb
css="div {color:red;}"
js="console.log('hello world!')"
html="<div>hello world!</div>"
/>
);
}
ReactDOM.render(<Demo />, document.getElementById('container'));
</script>
</body>
</html>