浏览代码

Listing 11: fetching from the server (non-functional).

Frederic G. MARAND 9 年之前
父节点
当前提交
a053e461e2
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      public/scripts/tutorial.js

+ 1 - 1
public/scripts/tutorial.js

@@ -60,6 +60,6 @@ let CommentBox = React.createClass({
 });
 
 ReactDOM.render(
-  <CommentBox data={data} />,
+  <CommentBox url="/api/comments" />,
   document.getElementById("content")
 );