Skip to content

Comment on Ask HN: Any web frontend library that fallbacks to SSR if JavaScript is missing?

Comments

NextJS does this.

How do you do this in NextJS. For example if you use useEffect that will not run on the server. You would need separate client and server code to do the same thing, in which case it is not much "handier" than vanilla PHP with JQuery.

NextJS has some ways around it that don't end up duplicating any logic:

https://nextjs.org/docs/pages/building-your-application/data...

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.