Runkit Embed on react
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>
import React from 'react';
import Embed from 'runkit-embed-react';
class Example extends React.Component {
render() {
return <Embed source={`console.log("Hello World!")`} />;
}
}
Check out the RunKit embed docs.
MIT © archieherbias