Hacker ApprovedDepartments

Preact

Hacker Approved

Ranked 8 of 21 JavaScript frameworks by recommenders

A very small library for building user interfaces with a React-like API, recommended for lightweight front ends and as a smaller alternative to React. One critic says a different library performs noticeably better.

A very small library for building user interfaces with a React-like API, recommended for lightweight front ends and as a smaller alternative to React. One critic says a different library performs noticeably better.

36 people gave an opinion

recommend it
35
criticize it
1
approval share
97%
Each figure is one person. RecommendsCriticizes

Recommended in 12 of 13 months

  1. November 2025: recommended
  2. December 2025: recommended
  3. January 2026: recommended
  4. February 2026: recommended
  5. March 2026: recommended
  6. April 2026: recommended
  7. May 2026: recommended
  8. June 2026: recommended
  9. July 2026: recommended
  10. August 2026: recommended
  11. September 2026: recommended
  12. October 2026: recommended
  13. November 2026: not recommended (month in progress)

Why it carries the badge

  • 35 people recommend itNeeds 10 or more, met.
  • 35 recommenders for every criticNeeds 2 to 1 or better, met.
  • Recommended in 12 of 13 monthsNeeds 4 or more, met.

The same three rules apply to every product, and the badge can’t be bought. How the badge works

What people say about it

The reasons people give, with the number of comments that give each one. Open a reason to read what they said.

Why people recommend it

Each mark is one comment

  • Very small bundle size

    “I don't use React itself when I can use the lighter Preact library instead, which provides signals as an escape hatch.”

    Comment from 26 May 2026 in “Does Anybody Actually Like React?”

    “you can switch to Preact (4kb) most of the time without changes if filesize is an issue”

    Comment from 16 Feb 2026 in “JavaScript-heavy approaches are not compatible with long-term performance goals”

    “Preact have been fairly faithful to being <10k (compressed)!”

    Comment from 3 Nov 2025 in “Why Nextcloud feels slow to use”
  • Pairs well with other tools

    “My preferred SPA stack these days involves Porsager’s Postgres library, a simple RPC stack with Zod schemas, and Preact”

    Comment from 21 Jun 2026 in “Code duplication is far cheaper than the wrong abstraction”

    “I've used bun + preact_render_to_string for server side JSX templates before and it was nice”

    Comment from 13 Mar 2026 in “Vite 8.0 Is Out”

    “I've found the perfect balance to be Astro with Preact”

    Comment from 4 Aug 2026 in “You don't need React: creating a minimal UI library in Vanilla JavaScript”
  • Covers most front-end needs

    “provides a pretty comprehensive and common set of solutions to the majority of front end problems”

    Comment from 28 Jul 2026 in “Removing React.js from the codebase and adapting Htmx for UI interactivity”

    “Preact did vdom-diffing for me and mounting/unmounting which was enough for my need.”

    Comment from 28 Jul 2026 in “So, you want to make a game engine (2023)”

    “So far haven't run into any limitations.”

    Comment from 4 Aug 2026 in “You don't need React: creating a minimal UI library in Vanilla JavaScript”
  • Simple and quick to use

    “It's simple, it's very easy, and I get things done quickly without over-thinking it.”

    Comment from 18 Jan 2026 in “jQuery 4.0.0 Released”

    “I agree Preact is the simpler and preferable of the two.”

    Comment from 20 Jan 2026 in “The Overcomplexity of the Shadcn Radio Button”

    “React is not simple (preact is)”

    Comment from 20 Jan 2026 in “The Overcomplexity of the Shadcn Radio Button”

Other JavaScript frameworks people recommend

The four most recommended other JavaScript frameworks, with the same counts for each, so you can compare like for like. The tick on each bar marks the 2 to 1 line the badge needs.

Preact compared with 4 alternatives
ProductRecommendCriticizeApprovalMonthsOwnedBadge
React48256046%1310 yrs21 owners—
htmx32012073%132 yrs12 ownersApproved
Svelte1513780%133 yrs9 ownersApproved
Vue1213976%139.9 yrs4 ownersApproved
PreactThis page35197%12—Approved
See all 21 JavaScript frameworks, ranked

What people said

37 of the 42 comments that mention it, newest first. Each links to the original comment.

“These don't have a VDOM at all or use a super fast minimal one.”

RecommendsComment from 21 Oct 2026 in “The Future of CSS”

“it is feasible to say, use an alternate library with JSX, like Preact.”

MixedComment from 4 Oct 2026 in “Why don't more developers “use the platform”?”

“While big solutions like Preact or Vue are great”

RecommendsComment from 6 Sep 2026 in “Show HN: Mador – Make any DOM reactive with a tiny 80-line Proxy state tuple”

“couples well with preact browser only (no npm/node compilation)”

RecommendsComment from 5 Aug 2026 in “You don't need React: creating a minimal UI library in Vanilla JavaScript”

“So far haven't run into any limitations.”

RecommendsComment from 4 Aug 2026 in “You don't need React: creating a minimal UI library in Vanilla JavaScript”

“Astro+preact has been very nice”

RecommendsComment from 4 Aug 2026 in “You don't need React: creating a minimal UI library in Vanilla JavaScript”

“I've found the perfect balance to be Astro with Preact”

RecommendsComment from 4 Aug 2026 in “You don't need React: creating a minimal UI library in Vanilla JavaScript”

“you can lean into Preact for that”

RecommendsComment from 4 Aug 2026 in “You don't need React: creating a minimal UI library in Vanilla JavaScript”

“You will inevitably have some piece of functionality that's complex (say, a contact form) and you can lean into Preact for that.”

RecommendsComment from 4 Aug 2026 in “You don't need React: creating a minimal UI library in Vanilla JavaScript”

“I hate bloat and require lightness, so I use Preact.”

RecommendsComment from 4 Aug 2026 in “You don't need React: creating a minimal UI library in Vanilla JavaScript”

“Preact did vdom-diffing for me and mounting/unmounting which was enough for my need.”

RecommendsComment from 28 Jul 2026 in “So, you want to make a game engine (2023)”

“provides a pretty comprehensive and common set of solutions to the majority of front end problems”

RecommendsComment from 28 Jul 2026 in “Removing React.js from the codebase and adapting Htmx for UI interactivity”

“My preferred SPA stack these days involves Porsager’s Postgres library, a simple RPC stack with Zod schemas, and Preact”

RecommendsComment from 21 Jun 2026 in “Code duplication is far cheaper than the wrong abstraction”

“Performance is noticeably better than with preact.”

CriticizesComment from 10 Jun 2026 in “Port React Compiler to Rust”

“I prefer Preact to React because it's smaller”

RecommendsComment from 26 May 2026 in “Does Anybody Actually Like React?”

“I don't use React itself when I can use the lighter Preact library instead, which provides signals as an escape hatch.”

RecommendsComment from 26 May 2026 in “Does Anybody Actually Like React?”

“It's really good with Preact + Tailwind.”

RecommendsComment from 12 Apr 2026 in “Why AI Sucks at Front End”

“Svelte, even Preact can be fun.”

RecommendsComment from 25 Mar 2026 in “Meta told to pay $375M for misleading users over child safety”

“Shopify is quickly moving to Preact, and you can see that is paying off”

RecommendsComment from 24 Mar 2026 in “No-build, no-NPM, SSR-first JavaScript framework if you hate React, love HTML”

“a basic SPA with no SSR using something like preact would be a better choice”

RecommendsComment from 13 Mar 2026 in “Vite 8.0 Is Out”

“I've used bun + preact_render_to_string for server side JSX templates before and it was nice”

RecommendsComment from 13 Mar 2026 in “Vite 8.0 Is Out”

“preact is about 3kb which is my fav for years”

RecommendsComment from 1 Mar 2026 in “Show HN: Vertex.js – A 1kloc SPA Framework”

“Python and SolidJS or Preact will work perfectly for a SPA.”

RecommendsComment from 19 Feb 2026 in “Your Agent Framework Is Just a Bad Clone of Elixir”

“you can switch to Preact (4kb) most of the time without changes if filesize is an issue”

RecommendsComment from 16 Feb 2026 in “JavaScript-heavy approaches are not compatible with long-term performance goals”

“I chose a no-build UI framework so that it could be modded by players without installing any build tools”

RecommendsComment from 10 Feb 2026 in “Show HN: I spent 3 years reverse-engineering a 40 yo stock market sim from 1986”

“I agree Preact is the simpler and preferable of the two.”

RecommendsComment from 20 Jan 2026 in “The Overcomplexity of the Shadcn Radio Button”

“React is not simple (preact is)”

RecommendsComment from 20 Jan 2026 in “The Overcomplexity of the Shadcn Radio Button”

“Our payload is quite a bit smaller yhan the jQuery prototype was.”

RecommendsComment from 18 Jan 2026 in “jQuery 4.0.0 Released”

“It's simple, it's very easy, and I get things done quickly without over-thinking it.”

RecommendsComment from 18 Jan 2026 in “jQuery 4.0.0 Released”

“You can do a lot with preact only”

RecommendsComment from 18 Jan 2026 in “jQuery 4.0.0 Released”

“Moving to preact, at the very least, is not a huge endeavor.”

RecommendsComment from 18 Jan 2026 in “High-Level Is the Goal”

“for the JSX-like syntax without a build step”

RecommendsComment from 15 Dec 2025 in “JSDoc is TypeScript”

“Moving towards Preact & signals currently seems like the best option for existing projects”

RecommendsComment from 4 Dec 2025 in “RCE Vulnerability in React and Next.js”

“You should look at using Preact (4kb alternative)”

RecommendsComment from 26 Nov 2025 in “Show HN: We built an open source, zero webhooks payment processor”

“I have really been enjoying using Preact for frontend development recently”

RecommendsComment from 11 Nov 2025 in “CSS Extraction Library for Vite and Preact”

“Same goes for most modern frameworks (Solid, Vue, Preact)”

RecommendsComment from 6 Nov 2025 in “App Store web has exposed all its source code”

“Preact have been fairly faithful to being <10k (compressed)!”

RecommendsComment from 3 Nov 2025 in “Why Nextcloud feels slow to use”

Counts come from 1,795,640 Hacker News comments, November 2025 to November 2026. How we count. Report a mistake.