A simple Reddit Client with React JS

A recreation of the Reddit client created with Montage JS at http://montagejs.org/docs/tutorial-reddit-client-with-montagejs.html

by chimco_89

HTML

<script src="https://cdnjs.cloudflare.com/ajax/libs/react/0.13.2/JSXTransformer.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/react/0.13.2/react-with-addons.min.js"></script>
<script src="https://facebook.github.io/react/js/jsfiddle-integration.js"></script>
<body></body>

JavaScript 1.7

var Image = React.createClass({
      propTypes: {
        name:   React.PropTypes.string.isRequired,
        width:  React.PropTypes.number.isRequired,
        height: React.PropTypes.number.isRequired,
        alt:    React.PropTypes.string
      },
      render() {
        var src = `http://www.keenthemes.com/preview/metronic/theme/assets/global/plugins/jcrop/demos/demo_files/image1.jpg`;
        return (
          <div>
          <img src={src} width={this.props.width} height={this.props.height} alt={this.props.alt} />
          <span>{this.props.name}</span>
          </div>
        );
      }
    });
    
    React.render(<Image name="good Image" height={100} alt={"fdf"} />,document.body);