First React in Subscribers.
This commit is contained in:
15
assets/js/src/subscribers.jsx
Normal file
15
assets/js/src/subscribers.jsx
Normal file
@ -0,0 +1,15 @@
|
||||
define('subscribers', ['react'], function(React) {
|
||||
var CommentBox = React.createClass({
|
||||
render: function() {
|
||||
return (
|
||||
<div className="commentBox">
|
||||
Hello, world! I am a CommentBox.
|
||||
</div>
|
||||
);
|
||||
}
|
||||
});
|
||||
React.render(
|
||||
<CommentBox />,
|
||||
document.getElementById('subscribers-container')
|
||||
);
|
||||
});
|
Reference in New Issue
Block a user