from Hacker News

Ask HN: For one-way publishing websites, are JavaScript UI frameworks helpful?

by deanebarker on 7/6/22, 6:49 PM with 2 comments

Say you're building a web SITE (not a web APPLICATION).

This is a site that simply publishes content. There's no elaborate functionality or interactivity, other than a few web forms. The use cases is "click a link, view a page, click another link, view another page, etc."

Can a full JavaScript UI framework like React or Svelte provide value here? Are they worth the trouble over simple server-side templating/rendering of HTML (SSR)? Why or why not?

  • by PaulHoule on 7/6/22, 7:17 PM

    Unless you want some special UI, No.

    One example of "special UI" would be using methods from the "Progressive Web Apps" toolkit to make a local copy of a web site you could use offline. You should be able to introduce that into a site which is otherwise pretty ordinary.

  • by smt88 on 7/6/22, 7:15 PM

    Not React, but SvelteKit is great. It can export 0kb of JS for static-only sites.