Re:Ask HN: State of PHP at Facebook?
by kostyal on Wednesday October 27, 2021 @01:17PM
(#29016148)
Has anyone used both Hack and the modern React workflow of Typescript and a mixture of client and server-side rendering? Interested to know how they compare
[ Parent
| on HN ]
I haven't seen a huge emphasis on SSI + client other than projects like Next (which is ok but kind of clunky).
My experience with Hack was that it was just server-side ... is there some front-end aspect to Hack?
Re:Ask HN: State of PHP at Facebook?
by connordoner on Wednesday October 27, 2021 @01:29PM
(#29016321)
There is: it's called XHP (https://docs.hhvm.com/hack/XHP/introduction).
That said, I'm not sure how you'd go about server-side rendering React from Hacklang, as it seems that the open-source solution to do so is no longer supported (https://github.com/hhvm/xhp-js).
Re:Ask HN: State of PHP at Facebook?
by fredemmott on Thursday October 28, 2021 @11:35AM
(#29027317)
To clarify, xhp-js was not server-side rendering - it's a framework for generating javascript code, and getting an DOM element ID for a react element that the hack code can refer to and use elsewhere, e.g. by passing to some other generated JS.