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 HelloWorld = React.createClass({
render: function() {
return (
<div>
Hello, world!
<TestMethod />
</div>
);
}
});
var TestMethod = React.createClass({
render: function(){
return <div>nguyen van dung</div>;
}
});
React.render(<HelloWorld />,document.body);