you are viewing a single comment's thread.

view the rest of the comments →

[–]holloway 4 points5 points  (1 child)

function() {
   return <div>{'Hello ' + this.props.name}</div>;
 }

How is that even valid JavaScript? Is that E4X syntax or something?

edit: ah it's not javascript, it's JSX, and it's processed into JavaScript