We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 327754d commit c44c5f0Copy full SHA for c44c5f0
src/index.tsx
@@ -13,7 +13,7 @@ export default React.forwardRef<HTMLIFrameElement, RunWebProps>((props, ref) =>
13
const srcDoc = useMemo(() => {
14
const jsString = js ? `<script type="text/javascript">${js}</script>` : '';
15
const cssString = css ? `<style>${css}</style>` : '';
16
- return `<!DOCTYPE html><html><head>${cssString}</head><body>${html}${jsString}</body></html>`;
+ return `<!DOCTYPE html><html><head>${cssString}</head><body>${html}</body>${jsString}</html>`;
17
}, [css, html, js]);
18
19
return <iframe title={title} width="100%" height="100%" style={{ border: 0 }} {...other} ref={ref} srcDoc={srcDoc} />;
0 commit comments