Updated

Technology · Code & frameworks

Preact

preactjs.com
Open source

What is Preact?

Preact is a JavaScript library for building user interfaces that offers a small alternative to React with the same modern API. It is free, open source software under the MIT license.[1][2][3]

Preact is a fast, 3KB alternative to React with the same modern API and ecosystem. It offers a Virtual DOM, components, and hooks, making it easy for React developers to adopt. Preact's small size and high performance make it an excellent choice for projects where bundle size is a concern, such as progressive web apps or low-bandwidth applications.

Preact belongs toJavaScript librariescategory.

What it is

A library for building user interfaces with components[1]

Aim

Small size, with a compatibility layer for React components[2][1]

License

MIT[3]

Without a build step

Can be used directly in the browser without transpilation[1]

97websites

use it — 3.8% of the 2,539 websites we scanned in the last 12 months

#11of 108

tools in its category seen in our scans (we recognize 253)

11public pages

on UptimeCard — open any of them to see how that site is doing

In short: a small drop-in alternative to React for when download size matters; a few React features are left out on purpose.[1][2]

3.52% of all websites we track run Preact▼ 0.01 points since 20 Sep

What is Preact used for?

In short, from the websites we scan

Building interactive interfaces
Components and a Virtual DOM build screens that update as state changes.[1]
Keeping page weight low
A small library leaves more of the page's JavaScript budget for your own code.[1]
Embedding widgets
Preact can build a part of an app, such as an embedded widget, without complex integration.[1]
Reusing React components
A compatibility alias lets many React components run inside a Preact app.[1]
Managing app state
Signals are reactive values that update components when they change.[7]
What it does
Preact is one of the javascript libraries tools websites use. In our scans it is #11 of the 108 we see.
Used together with
It is often installed next to Google Tag Manager, Didomi, Facebook Pixel.

Should you use Preact?

The 10-second version, from the vendor’s own pages and what we see in our scans

Preact fits if…

  • You want React-style components with a small download[1]
  • You embed interactive widgets into pages you do not fully control[1]

Look elsewhere if…

  • You need every React feature, including the ones Preact leaves out on purpose[2]PropTypes, Children and Synthetic Events are not part of Preact's core.
A major version change brings breaking changes; check the upgrade guide before moving to a new major version[4]

Preact next to its closest alternatives

Other ways to build a web interface. Statements come from each project's own page; website counts and speed are ours.

PreactReactVue.js
What each one says it is
What it isA small libraryalternative to React with the same modern API[1]A libraryfor web and native user interfaces[5]A frameworkfor web user interfaces[6]
What we see in our scans
Websites running it973.8% of 2,539 scanned sites64025.2% of 2,539 scanned sites1445.7% of 2,539 scanned sites
Typical page load time3.4 s11 public sites3.2 s✓217 public sites3.8 s28 public sites
Typical page weight3.5 MBtypical home page3.7 MBtypical home page3.3 MB✓typical home page

Scan rows count public pages only; a tool needs at least 5 measured sites to appear.

  • React: A library for web and native user interfaces[5]
  • Vue.js: A framework for building web user interfaces[6]

Choose Preact if…

  • download size matters and you still want React's component model[1]

Choose React if…

  • you want the library most others target, including for native apps[5]

Choose Vue.js if…

  • you prefer a framework designed around approachable web interfaces[6]

Support and help for Preact

How the vendor says you can reach it, and the public help community

Stack Overflow

581 questions[11][12]

63% have an upvoted answer. [preact] questions

Preact versions

The newest release, the series that still gets fixes, and what changed

Latest release

11.2.0[3][8]

Released 6 Nov 2026

Maintained series

11

What changed in 11

  • Version 11 adds automatic ref forwarding and Object.is equality checks in hook arguments[4]

What changed in 10.0.0

  • Version 10.0.0, called Preact X, added Fragments, Hooks, componentDidCatch and Test-Utils[9][10]

What Preact sites add on top

How many of the 97 Preact sites we scanned also run each tool, grouped by what the tool does

Tag manager

Google Tag Manager
76%74 sites

Analytics

Google Analytics
53%51 sites
Facebook Pixel
26%25 sites
HubSpot Analytics
14%14 sites

Cookie consent

Didomi
35%34 sites
HubSpot Cookie Policy Banner
13%13 sites
Funding Choices
12%12 sites

Online store

Cart Functionality
25%24 sites

Marketing

HubSpot
18%17 sites

The full bar means every Preact site. A site can run several tools for one job, so the shares of tools in one group can add up to more than 100%.

How Preact sites protect themselves

Share of the 97 sites we scanned that run each protection

HSTS69% · 67 sites

HTTP Strict Transport Security (HSTS) informs browsers that the site should only be accessed using HTTPS

Cloudflare Bot Management21% · 20 sites

Cloudflare bot management solution identifies and mitigates automated traffic to protect websites from bad bots

reCAPTCHA21% · 20 sites

reCAPTCHA is a free service from Google that helps protect websites from spam and abuse

Protections add up, they do not replace each other: a site can run all of them.

At a glance

UptimeCard's own scans and tests of 2,539 websites · refreshed weekly

How Preact sites scoreout of 100 · hover or tap a score for details

49PerformancePooraverage site: 5192AccessibilityGoodaverage site: 9177Best practicesFairaverage site: 9692SEOGoodaverage site: 92

Page load time

Loads about as fast as the average site

Preact sites
3.4 s
All sites
3.5 s

Most Preact sites load in 2.6–4.5 s. Home page weight: 3.5 MB vs 3.4 MB for all sites. 11 public sites measured.

Who uses it?

Technology and Software is the biggest group

Technology and Software20%
Business Services10%
Community Forums10%
Eco-friendly Products10%

Share of 10 classified public sites. “× average” compares with all 961 public sites.

How Preact sites are built

Closest partners. The number says how many times more often the tool runs on Preact sites than on an average website. Hover a partner for its share of sites.

Didomi25×HubSpot Cookie Policy Banner17×Marfeel9×Google AdSense6×Prebid5×Amazon Advertising3×Emotion3×HubSpot Analytics2×Funding Choices2×

Stacks we see most. Tools that tend to run together with Preact on the same websites. The percentage is the share of all 97 Preact sites that run the whole stack.

9 stacks · swipe, drag or use the arrows
#1

Preact + HubSpot Cookie Policy Banner + HubSpot CMS Hub

9.3%9 of 97 sites
#2

Preact + Didomi + Funding Choices

8.2%8 of 97 sites
#3

Preact + Next.js + Emotion

8.2%8 of 97 sites
#4

Preact + Didomi + Next.js

7.2%7 of 97 sites
#5

Preact + Funding Choices + Google Sign-in

5.2%5 of 97 sites
#6

Preact + Didomi + YouTube

5.2%5 of 97 sites
#7

Preact + Didomi + Google Sign-in

4.1%4 of 97 sites
#8

Preact + Next.js + Google Sign-in

4.1%4 of 97 sites
#9

Preact + Funding Choices + Facebook Login

4.1%4 of 97 sites

Similar tools in its category

JavaScript libraries: 253 tools known, 108 seen in our scans

How websites combine Preact with other tools

Relationships found on the websites that use it, from the same map status pages show.

Complements another tool 9Integrates with another 3Overlaps with another 3Needs another tool 2

Websites using Preact

97 websites use Preact: 3.8% of the 2,539 websites we scanned in the last 12 months. A selection is shown below.

Scores are out of 100: P Performance · A Accessibility · B Best practices · S SEO. Green 80+, yellow 65–79, orange 50–64, red below 50. The dot shows whether our last scan found the site failing (red) or not (green); Red, amber or blue: an active incident on the site's status page (outage, degraded, maintenance) or a failing scan; amber also means a certificate ending within 30 days. Hover the dot for details.

Who is behind Preact

From its own pages and public records, with sources

Preact

since 2015[13]

Its story

  1. 2015

    The Preact repository was created on GitHub, starting a library that aims to keep the React-style component model in a very small package.[13]

  2. 2019

    Preact X, version 10.0.0, was marked stable with Fragments, Hooks and componentDidCatch, bringing React-style features to the small library.[9][10]

  3. 2022

    Signals were introduced as a way to manage state that keeps apps fast however many components they have, an alternative to hooks for state.[14]

  4. 2026

    Preact 11 shipped after years of planning, bundling breaking changes into a new major version with automatic ref forwarding.[4]

Questions about Preact

What is Preact?
Preact is a JavaScript library for building user interfaces that offers a small alternative to React with the same modern API. It is free, open source software under the MIT license.
What is Preact used for?
Components and a Virtual DOM build screens that update as state changes. A small library leaves more of the page's JavaScript budget for your own code. Preact can build a part of an app, such as an embedded widget, without complex integration. A compatibility alias lets many React components run inside a Preact app. Signals are reactive values that update components when they change. Preact is one of the javascript libraries tools websites use. In our scans it is #11 of the 108 we see. It is often installed next to Google Tag Manager, Didomi, Facebook Pixel.
Can I use React components in Preact?
Mostly yes. Adding a preact/compat alias to your bundler provides a compatibility layer for React components.[1]
What does Preact leave out compared with React?
PropTypes, Children and Synthetic Events are intentionally omitted from the core.[2]
Do I need a build tool to use Preact?
No. Preact can be used directly in the browser without any transpilation steps.[1]
What are signals in Preact?
Signals are reactive primitives for managing application state; a signal is an object with a value property.[7]
How many websites use Preact?
We found Preact on 97 of the 2,539 websites we scanned in the last 12 months (3.8%). 11 of them have a public status page.
What are the alternatives to Preact?
Other javascript libraries tools we recognize include jQuery, core-js, Swiper, jQuery Migrate.

Is your website built with Preact?

Create a free status page that shows your visitors your site is up. It also gives your site its own public page where new people can discover it.

Example status page card