reactjs/react-tutorial

tutorial8.js

nordbit opened this issue · 2 comments

// tutorial8.js
var data = [
  {author: "Pete Hunt", text: "This is one comment"},
  {author: "Jordan Walke", text: "This is *another* comment"}
];

do not work

but

// tutorial8.js
var data = [
  {"author": "Pete Hunt", "text": "This is one comment"},
  {"author": "Jordan Walke", "text": "This is *another* comment"}
];

work correctly

zpao commented

What's error did you see? At that point in the tutorial we're just accessing that object directly and that is valid JS.

Sorry, yesterday not work, today all work correctly, without any changes, no idea why.
Maybe gremlins escaped from my PC at night.