Created
October 21, 2015 21:23
-
-
Save aarkerio/d5cf4912b04b1cf211d5 to your computer and use it in GitHub Desktop.
React SyntaxError: unknown: Unexpected token
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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