/*jshint ignore:start */ var CodeBox = React.createClass({ getInitialState: function() { return { html: '' }; }, componentDidMount: function() { var that = this; $.get('/' + this.props.src).then(function(data) { that.setState({ html: data }); }); }, render: function() { var html = this.state.html; return (
); } }); var CodeBoxes = React.createClass({ render: function() { return (
{this.props.children}
); } });