Skip to content

Commit 8f27a32

Browse files
authored
Create code-runner-wc-react.js
1 parent 36cfb96 commit 8f27a32

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

src/code-runner-wc-react.js

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
import "https://cdn.jsdelivr.net/gh/MarketingPipeline/Code-Runner-Web-Component/dist/code-runner-wc.min.js";
2+
3+
import useCustomElement from "https://cdn.skypack.dev/[email protected]";
4+
5+
const CodeRunnerComponent = props => {
6+
const [customElementProps, ref] = useCustomElement(props);
7+
8+
return <code-runner {...customElementProps} ref={ref} />;
9+
};

0 commit comments

Comments
 (0)