React Base Fiddle (JSX)

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

by Cody Lindley

HTML

<script src="https://fb.me/react-with-addons-0.14.0.js"></script>
<script src="https://fb.me/react-dom-0.14.0.js"></script>
<div id="app1"></div>

<div id="app2"></div>

Babel + JSX

//React node, which represents an actual HTML DOM node
var HTMLLi = <li className="bar">foo</li>;

//React node, which represents a custom HTML DOM node
var HTMLCustom = <foo-bar className="bar" >foo</foo-bar>;

ReactDOM.render(HTMLLi, document.getElementById('app1'));

ReactDOM.render(HTMLCustom, document.getElementById('app2'));