Explorar o código

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

Frederic G. MARAND %!s(int64=9) %!d(string=hai) anos
pai
achega
a053e461e2
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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")
 );