Explorar el Código

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

Frederic G. MARAND hace 9 años
padre
commit
a053e461e2
Se han modificado 1 ficheros con 1 adiciones y 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")
 );