Softwr
Preact logo

Preact

3kB alternative to React with the same modern API

As of 20 November 2026, Preact is free to use. A 3kB React alternative with the same API, for when bundle size is the constraint. Softwr lists it under Web Development. Preact is available on Web.

Overview

What is Preact?

Preact is a small JavaScript library for building user interfaces with components, using a virtual DOM and an API that is close to React's. Its website describes it as providing the thinnest possible virtual DOM abstraction on top of the DOM, registering real event handlers, and working alongside other libraries. It can be used directly in a browser without a build step, through ES modules or the JSX-like HTM syntax, or through a build tool such as Vite, which the documentation recommends for newcomers. The project says it is small enough that an application's own code is the largest part of its bundle, and it batches updates automatically. A compatibility layer, preact/compat, is added to a bundler as an alias so that many React components can be used in a Preact application. Documented features include hooks, signals, context, forms, server-side rendering, web components support, a testing library and TypeScript support. Preact is an open-source project, so there is no licence fee, and the site invites sponsorship. It suits teams that want React-style development with a smaller download, and people embedding widgets in larger pages. It does not cover every React feature, so some React libraries need the compat layer and may behave differently from the original.

What people use it for

  • Embedded widgets that load inside someone else’s page and must stay small
  • Marketing and content sites where JavaScript payload affects Core Web Vitals
  • Applications targeting low-bandwidth or low-powered devices

The honest half

Where does Preact fall short?

The limits buyers hit most with Preact: compatibility through preact/compat is good but not total, and some React libraries break in ways that are hard to diagnose; and behavioural differences from React exist in edge cases, particularly around event handling. Each is concrete and checkable: the half of a review a vendor will not write.

  • Compatibility through preact/compat is good but not total, and some React libraries break in ways that are hard to diagnose
  • Behavioural differences from React exist in edge cases, particularly around event handling
  • A much smaller community, so unusual problems have fewer existing answers than React

Cross-shopped

What are the alternatives to Preact?

The closest alternatives to Preact are React, SolidJS and Svelte. Each is a tool buyers genuinely weigh against it, with the reason why.

  • Preact vs React

    React: The framework Preact mirrors, with the full ecosystem and a much larger runtime

  • Preact vs SolidJS

    SolidJS: Small, fast reactive UI library using fine-grained updates instead of a virtual DOM, for performance-minded teams

  • Preact vs Svelte

    Svelte: Compiler-based framework that ships little runtime code, a lightweight option outside the React model

  • Preact vs Vue.js

    Vue.js: Progressive framework with its own component model and large ecosystem, for teams not tied to React APIs

  • Preact vs Qwik

    Qwik: Framework focused on fast page loads through resumable rendering, an option for content-heavy sites

Pricing

How much does Preact cost?

Preact is free to use. Taken from the vendor's own pricing page; prices move, so check before you buy.

Preact

Free

  • Full library
  • Commercial use permitted
  • No usage limits

Capabilities

What can Preact do?

Preact lists 4 features, including 3kB runtime, preact/compat and same modern API.

  • 3kB runtime

    A fraction of React’s size with the same component model

  • preact/compat

    Compatibility layer letting most React libraries work unchanged

  • Same modern API

    Hooks, context and function components as in React

  • Fast rendering

    Lighter diffing with less framework overhead per update

Answered, with sources

Questions people ask

Each answer names the page it came from, so you can check it rather than take our word for it.

Is Preact free?

Yes, open source under the MIT licence.

Can I use React libraries with Preact?

Most, through the preact/compat layer. Compatibility is good but not complete, so libraries relying on React internals can break.

Why choose Preact over React?

Bundle size, almost always. If payload is not a binding constraint, React’s ecosystem is usually the better trade.

Checked against

Sources

The pages the facts above were read from. Prices and limits change, so the vendor's own page is the final word.

Share

Keep looking

Where to go from Preact

Best Web Development software for

Compare Preact with

Other Web Development software

  • Reactive JavaScript framework with no virtual DOM

    Open source11 researched notes
  • Lightweight library for building Web Components

    Free plan10 researched notes
  • The Progressive JavaScript Framework

    Free plan12 researched notes
  • A JavaScript library for building user interfaces

    Free plan14 researched notes
  • Framework for edge computing with instant interactivity and minimal JavaScript

    Free plan13 researched notes
  • MIT licensed toolchain for building reusable Web Component libraries in TypeScript

    Free plan13 researched notes
  • A love letter to web development

    Free plan10 researched notes
  • Lightweight JavaScript framework for composing dynamic behavior in HTML

    Free plan12 researched notes
  • Open source JavaScript library for DOM traversal, events, animation and Ajax

    Free plan12 researched notes
  • React component library implementing Material Design

    Free plan11 researched notes
  • The original CSS framework for responsive, mobile-first sites

    Open source10 researched notes
  • Extremely fast JavaScript bundler written in Go

    Open source13 researched notes
  • Static site generator from Meta for documentation sites

    Open source13 researched notes
  • The web framework for perfectionists with deadlines

    Free plan12 researched notes
  • Web framework for content-driven sites shipping minimal JavaScript by default

    Free plan12 researched notes
  • One-page website builder for small businesses and creators

    Free, then $8/mo13 researched notes
  • Accessible React component library with a style-props API

    Open source13 researched notes
  • A lightweight WSGI web application framework

    Free plan15 researched notes

Softwr does not host reviews and shows no star rating for Preact, because a rating we did not collect is not ours to publish. What is here is the pricing and platform detail from the vendor’s own pages, limitations we could state concretely, and alternatives a reviewer confirmed people weigh against it. Tell us if any of it is wrong.

More on Preact

Best Web Development software alternatives

Open source JavaScript library for DOM traversal, events, animation and Ajax

open-source

Free open source PHP content management system for websites and applications

open-source

Open source Ruby static site generator that powers GitHub Pages

open-source

Open-source React framework for building websites and apps

open-source

Open-source application framework built on Svelte

open-source

Small JavaScript framework that adds behaviour to existing server rendered HTML

open-source

MIT licensed toolchain for building reusable Web Component libraries in TypeScript

open-source

Open source static site generator written in Go, focused on build speed

open-source

Compare Preact with alternatives