The tyranny of single page apps

(blog.bidisaster.party)

13 points | by speckx 10 hours ago ago

4 comments

  • ethanplant 4 hours ago ago

    I'm not quite sure what being a leftie has to do with the point you're making. This isn't really a political point and more the valid (though not particularly novel) view that "most websites are overcomplicated".

    > Writing the simplest of websites requires a ton of tooling now.

    Meanwhile my website personal website is nothing but markdown files that get rendered into static HTML with a little bit of CSS. You really don't need a massive JS framework for a simple website.

  • haitchfive 9 hours ago ago

    I don't understand what's the new contention. You are a leftie. Okay, so?

    ReactJS only pays off at Facebook scale. Corporate front-end development is overengineered.

    Not exactly a secret. Any other news?

  • undefined 9 hours ago ago
    [deleted]
  • paulddraper 10 hours ago ago

    > And of course if you're using React, obviously you want to use Tailwind CSS, right? Ok, you can certainly choose to use SASS or LESS if you seriously want to, but CSS post processors are all the rage these days.

    Or CSS Modules [1].

    It's supported OOTB by virtually every CSS bundler:

    * Webpack (css-loader)

    * Rollup (rollup-plugin-postcss)

    * Vite

    * Parcel

    * Rspack

    * esbuild

    * Turbopack

    It's just vanilla CSS -- classes, pseudo-classes, media queries, etc -- with only two tweaks:

    1. local scoping (and exporting scoped names to JS)

    2. class inheritance

    It's very easy to use, and stays very close to vanilla CSS.

    [1] https://github.com/css-modules/css-modules