I'm new to react.js.
I am following the documentation example on their website
I don't really understand this portion here:
// tutorial11.js ReactDOM.render( <CommentBox url="/api/comments" />, document.getElementById('content') ); when I use this comments.json file here <CommentBox url="comments.json" pollInterval={200} />, it won't work. But if I rename comments.json file to comments.txt, it works perfect. I don't know what I am missing here. I hope somebody here can explain to me further how to use .json file.
<CommentBox url="/api/comments" />I only wan't to know why the url porperty won't work if I use.jsonfile. Everything works fine if I use.txtfile with the same json content.componentDidMountmethod?