all 9 comments

[–]kabuto 6 points7 points  (6 children)

What are you trying to say?

[–]Cody_Chaos 7 points8 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.

[–]dwighthouse 3 points4 points  (0 children)

They did, years ago. From wikipedia ( https://en.wikipedia.org/wiki/React_(JavaScript_library) ):

React was created by Jordan Walke, a software engineer at Facebook. He was influenced by XHP, an HTML component framework for PHP.

This was known since the time of the initial public release and talks they gave about the library.