소스 검색

Listing 5: component properties.

Frederic G. MARAND 8 년 전
부모
커밋
519376d133
1개의 변경된 파일2개의 추가작업 그리고 1개의 파일을 삭제
  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>
     );
   }