Преглед на файлове

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")
 );