Skip to content

Instantly share code, notes, and snippets.

@aarkerio
Created October 21, 2015 21:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save aarkerio/d5cf4912b04b1cf211d5 to your computer and use it in GitHub Desktop.
Save aarkerio/d5cf4912b04b1cf211d5 to your computer and use it in GitHub Desktop.
React SyntaxError: unknown: Unexpected token
render: function() {
var trNodes = this.props.data.map(function (appointment) {
return (
<tr><td>{appointment.id}</td><td>{appointment.scheduled_time}</td><td>{appointment.pet_id}</td><td>Delete</td></tr>
);
});
var commentNodes = return (
<div className="commentBox">trNodes</div>
);
return (
<div className="commentList">
{commentNodes}
</div>
);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment