React Base Fiddle (JSX)
Starting point for creating JSFiddles with React. This uses React with Addons.
by hellosze
HTML
<script src="https://cdnjs.cloudflare.com/ajax/libs/react/0.13.1/JSXTransformer.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/react/0.13.1/react-with-addons.js"></script>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap.min.css">
<script src="https://facebook.github.io/react/js/jsfiddle-integration.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() {
var string = "";
for(var i = 0; i < this.props.times; i++){
string = this.props.name + "/" + string;
}
return <h1>Hello {string}</h1>;
}
});
React.render(<Hello name="World" times="255" />, document.getElementById('container'));