Skip to content

Instantly share code, notes, and snippets.

@exogen
Created October 9, 2015 22:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save exogen/b40997bb07eaa41ac6b8 to your computer and use it in GitHub Desktop.
Save exogen/b40997bb07eaa41ac6b8 to your computer and use it in GitHub Desktop.
import React from 'react';
import ReactDOM from 'react-dom';
import Playground from 'component-playground';
const examples = {
block: require('raw!./examples/block.example')
}
class Demo extends React.Component {
render() {
return (
<Playground codeText={examples.block} scope={{ React, ReactDOM }}/>
);
}
}
ReactDOM.render(<Demo/>, document.getElementById('demo'));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment