Skip to content

Latest commit

 

History

History
44 lines (29 loc) · 895 Bytes

README.md

File metadata and controls

44 lines (29 loc) · 895 Bytes

runkit-embed-react

Runkit Embed on react

NPM JavaScript Style Guide

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 © archieherbias