Skip to content

archieherbias/runkit-embed-react

Repository files navigation

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

About

Embed Runkit for React Projects

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published