Explorar o código

Listing 3: composing components: composing CommentBox of CommentList and CommentForm.

Frederic G. MARAND %!s(int64=9) %!d(string=hai) anos
pai
achega
257f06693e
Modificáronse 1 ficheiros con 3 adicións e 1 borrados
  1. 3 1
      public/scripts/tutorial.js

+ 3 - 1
public/scripts/tutorial.js

@@ -22,7 +22,9 @@ let CommentBox = React.createClass({
   render: function () {
     return (
       <div className="commentBox">
-        Hello, world: I am a CommentBox.
+        <h1>Comments</h1>
+        <CommentList />
+        <CommentForm />
         </div>
     );
   }