logoalt Hacker News

matsemanntoday at 11:08 AM1 replyview on HN

Same, at least for smaller projects where I want some kinds of interactivity, but also a good static rendered page first and just the ease of writing, Astro+preact has been very nice.


Replies

lkbmtoday at 11:59 AM

I switched my small personal projects to preact in a (temporarily successful effort) to get one under 14kb after re-reading [0] a year or two back. So far haven't run into any limitations.

If you need React, then go ahead and use React, but I'd encourage people to try a simple s/react/preact/g on their websites. (Okay, not quite as simple as that, but even if you don't like vibe coding, this is something an LLM can be trusted with.)

[0] https://endtimes.dev/why-your-website-should-be-under-14kb-i...