Pārlūkot izejas kodu

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

Frederic G. MARAND 9 gadi atpakaļ
vecāks
revīzija
a053e461e2
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  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")
 );