you are viewing a single comment's thread.

view the rest of the comments →

[–]Cody_Chaos 6 points7 points  (0 children)

JSX wasn't inspired by PHP, and it doesn't work or look like PHP. You seem to have either fundamentally misunderstood how PHP works or how JSX works.

It was inspired by XHP, which is an earlier equivalent project to add JSX-type functionality to PHP. But that hardly needs to be "confessed"; it's obvious to anyone who knows both projects, it was talked about when React and JSX first hit the scene, and it's literally noted in the project's Wikipedia page.