Frederic G. MARAND 8 роки тому
батько
коміт
c5ef09183f
1 змінених файлів з 13 додано та 0 видалено
  1. 13 0
      public/scripts/tutorial.js

+ 13 - 0
public/scripts/tutorial.js

@@ -1,3 +1,16 @@
+let Comment = React.createClass({
+  render: function () {
+    return (
+      <div className="comment">
+        <h2 className="commentAuthor">
+          {this.props.author}
+        </h2>
+        {this.props.children}
+      </div>
+    );
+  }
+});
+
 let CommentList = React.createClass({
   render: function () {
     return (