4 ms·
Making a site written in React work without JS is quite an endeavor. If you’re not just using it for some progressive enhancement (and frankly, that seems a dyi
by mhd 9y ago
Making a site written in React work without JS is quite an endeavor. If you’re not just using it for some progressive enhancement (and frankly, that seems a dying art), then it’s either a whole new backend or trying to be “isomorphic”.
The latter is somewhat difficult in an environment where IE8 is a factor (node as enterprise backend software is often a no-go).
- patrickthebold 9y agoYou can use Java/nashorn for server side rendering of react.
- lucideer 9y ago... you can also use react for server-side rendering of react
- betenoire 9y agoYou say isomorphic almost like you dismiss it. I structured my site so that, in the worst case, the user has a plain old site of HTML + CSS and lots of hyperlinks that work just fine. My drop down headers default to pages that show the drop down content. The embarrassing part was I had a simple bug affecting a sizable chunk of my user-base. In a certain browser, no code would run. But I never received a single complaint, because no one noticed. Sure, some fancy extras didn't work, but they are used to that with that particular browser. The information and required functionality was there. And I didn't have to write it in both PHP AND Javascript.