0.3.0-beta.5 • Published 7 years ago

armo-breadboard v0.3.0-beta.5

Weekly downloads
4
License
MIT
Repository
-
Last release
7 years ago

armo-breadboard

npm version

A themeable React component. Use it to edit a live React component's source in real time.

Used on reactarmory.com. Only use this component to display your own code -- it is not safe for use with publicly submitted code. For public code, use a service like codepen.io.

Installation

yarn add armo-breadboard

Host script

To use Breadboard with IE, you'll need to setup a "host page" on the domain under which you want the script to run. This domain should be different from your site's domain for security purposes.

The host page just loads the host script, which allows it to receive source from the main Breadboard component. For example, React Armory has a host.html page on https://breadboard.reactarmory.com:

<!DOCTYPE html>
<html>
  <head>
    <script src="https://breadboard.reactarmory.com/host.js?version=1"></script>
  </head>
  <body>
  </body>
</html>