Explorar o código

Listing 5: component properties.

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

+ 2 - 1
public/scripts/tutorial.js

@@ -15,7 +15,8 @@ let CommentList = React.createClass({
   render: function () {
     return (
       <div className="commentList">
-        Hello, world! I am a CommentList.
+        <Comment author="Pete Hunt">This is one comment</Comment>
+        <Comment author="Jordan Walke">This is *another* comment</Comment>
         </div>
     );
   }