armo-breadboard
Version:
Edit a live React component's source in real time.
33 lines (24 loc) • 1.12 kB
Markdown
armo-breadboard
===============
[](https://www.npmjs.com/package/armo-breadboard)
A themeable React component. Use it to edit a live React component's source in real time.
Used on [reactarmory.com](http://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](http://codepen.io).**
Installation
------------
```bash
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`:
```
<html>
<head>
<script src="https://breadboard.reactarmory.com/host.js?version=1"></script>
</head>
<body>
</body>
</html>
```