runkit-embed-react
v1.0.1
Published
Runkit Embed on react
Downloads
4
Readme
runkit-embed-react
Runkit Embed on react
Install
Install the package using npm or yarn.
npm install --save runkit-embed-react
yarn add runkit-embed-react
Add the Runkit embed script to your page.
<head>
<script src="https://embed.runkit.com"></script>
</head>
Usage
import React from 'react';
import Embed from 'runkit-embed-react';
class Example extends React.Component {
render() {
return <Embed source={`console.log("Hello World!")`} />;
}
}
Docs
Check out the RunKit embed docs.
License
MIT © amagitechnologies