Hacker News new | ask | show | jobs
by kostyal 1698 days ago
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
1 comments

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?

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).

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.