React Base Fiddle (JSX)

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

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-0.14.6.js"></script>
<script src="https://fb.me/react-dom-0.14.6.js"></script>
<script src="https://facebook.github.io/react/js/jsfiddle-integration-babel.js"></script>

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

JavaScript 1.7

class Repositories extends React.Component {
  componentWillMount () {
    fetch(`https://api.github.com/users/${this.props.user}/repos`)
    .then(x => x.json())
    .then(x => this.setState({repos: x}))
  }  
  render() {
    
    if(this.state===null){
      return null
    }
    
    return (
    	<div>
      	<h3>{this.props.user}</h3>
      	<ul>
        	{this.state.repos.map(x => <li>{x.name}</li>)}
      	</ul>
      </div>
    );
  }
}




React.render(
  <Repositories user="sindresorhus"/>,
  document.getElementById('container')
);