4 ms·
IIRC php/hack had it before jsx existed: https://docs.hhvm.com/hack/XHP/introduction https://docs.hhvm.com/hack/XHP/introduction https://github.com/phplang/xh
by mic47 4y ago
IIRC php/hack had it before jsx existed:
https://docs.hhvm.com/hack/XHP/introduction https://docs.hhvm.com/hack/XHP/introduction
https://github.com/phplang/xhp https://github.com/phplang/xhp
- capableweb 4y agoThat's actually the heritage of JSX! XHP was launched in 2010 (https://www.facebook.com/notes/10158791323777200/ https://www.facebook.com/notes/10158791323777200/) The first version of FaxJs (the precursor to React) was launched in 2011, being directly inspired from XHP (https://github.com/jordwalke/FaxJs https://github.com/jordwalke/FaxJs) React was made in 2012 by the same person who made FaxJs, taking the best ideas from FaxJs and creating React. So yeah, JSX actually comes from the idea of XHP :)
- amenghra 4y agohttps://github.com/facebookarchive/xhp-php5-extension https://github.com/facebookarchive/xhp-php5-extension if you are interested in seeing how Marcel initially implemented XHP for PHP. The concept was popular at Facebook, so it made its way into HPHP, HHVM, and later ReactJS.