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({
      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="alt" />
            <span>{this.props.name}</span>
          </div>
        );
      }
    });
    var Image1 = <Image name="image1" width={100} height={100} />;
    var AvatarChange = React.render(Image1, document.body);
 AvatarChange.replaceProps({name: "image3"}, function(){
          alert("Bạn đang dùng replaceProps");
        });