React Base Fiddle (JSX)

Starting point for creating JSFiddles with React. This uses React with Addons.

by Chetan Hanumantha

HTML

<script src="https://cdnjs.cloudflare.com/ajax/libs/babel-core/5.8.24/browser.js"></script>
<script src="https://fb.me/react-with-addons-15.0.1.js"></script>
<script src="https://fb.me/react-dom-15.0.1.js"></script>
<script src="https://facebook.github.io/react/js/jsfiddle-integration-babel.js"></script>
<script src="https://code.highcharts.com/highcharts.js"></script>

<div id="container">
    <!-- This element's contents will be replaced with your component. -->
</div>

JavaScript 1.7

var Hello = React.createClass({
  render: function() {
    return <div>Hello {this.props.name}</div>;
  }
});

ReactDOM.render(
  React.createElement('div', { id: 'chart' }),
  document.getElementById('container'),
  function () {
    // Construct the chart
    Highcharts.chart('chart', { series:[{data:[1,2,3]}] });
});