Updated
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.
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
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…
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.
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.
| What each one says it is | |||
|---|---|---|---|
| What it is | A 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 it | 973.8% of 2,539 scanned sites | 64025.2% of 2,539 scanned sites | 1445.7% of 2,539 scanned sites |
| Typical page load time | 3.4 s11 public sites | 3.2 s✓217 public sites | 3.8 s28 public sites |
| Typical page weight | 3.5 MBtypical home page | 3.7 MBtypical home page | 3.3 MB✓typical home page |
Scan rows count public pages only; a tool needs at least 5 measured sites to appear.
Support and help for Preact
How the vendor says you can reach it, and the public help community
Preact versions
The newest release, the series that still gets fixes, and what changed
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
Analytics
Cookie consent
Online store
Marketing
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
HTTP Strict Transport Security (HSTS) informs browsers that the site should only be accessed using HTTPS
Cloudflare bot management solution identifies and mitigates automated traffic to protect websites from bad bots
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
Page load time
Loads about as fast as the average site
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
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.
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.
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.
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.
| Website | Industry | Hosted | Load time · size | Scores ⓘ | Status |
|---|---|---|---|---|---|
| Educational Resources | – | 13.0 s · 5.2 MB | P49A93B73S92 | ||
| Technology and Software | United StatesCloudflare London, LLC | 5.2 s · 5.1 MB | P42A91B77S92 | ||
| Technology and Software | United StatesCloudflare London, LLC | 2.6 s · 1.1 MB | P84A92B77S92 | ||
| Financial Software | United StatesGoogle LLC | 7.3 s · 2.4 MB | P41A95B77S92 | ||
| Website Builders | NetherlandsPrevider B.V. | 3.6 s · 3.5 MB | P47A92B100S100 | ||
| Business Services | United StatesCloudflare London, LLC | 2.0 s · 3.5 MBFast | P41A92B100S92 | ||
| Community Forums | United StatesAmazon.com, Inc. | 3.4 s · 2.7 MB | P75A96B96S100 | ||
| Health and Wellness | United StatesAmazon.com, Inc. | 3.9 s · 3.2 MB | P51A95B73S85 | ||
| Eco-friendly Products | CanadaCloudflare, Inc. | 2.5 s · 6.0 MB | P43A83B96S77 | ||
| Legal Services | United StatesAmazon.com, Inc. | 2.4 s · 3.7 MBFast | P66A95B73S92 | ||
| – | United StatesApple Inc. | 3.0 s · 3.0 MB | P68A92B100S92 |
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.
Classclass.comEducational Resources13.0 s · 5.2 MBP49A93B73S92Pulsantpulsant.comTechnology and SoftwareUnited States5.2 s · 5.1 MBP42A91B77S92
Syncsync.comTechnology and SoftwareUnited States2.6 s · 1.1 MBP84A92B77S92
Arrayarray.comFinancial SoftwareUnited States7.3 s · 2.4 MBP41A95B77S92
Yourhostingyourhosting.nlWebsite BuildersNetherlands3.6 s · 3.5 MBP47A92B100S100
Flexfoneflexfone.dkBusiness ServicesUnited States2.0 s · 3.5 MBP41A92B100S92
Discoursediscourse.orgCommunity ForumsUnited States3.4 s · 2.7 MBP75A96B96S100Dialoguedialogue.coHealth and WellnessUnited States3.9 s · 3.2 MBP51A95B73S85
Earth Breezeearthbreeze.comEco-friendly ProductsCanada2.5 s · 6.0 MBP43A83B96S77InfoTrackinfotrack.comLegal ServicesUnited States2.4 s · 3.7 MBP66A95B73S92
Appleapple.comUnited States3.0 s · 3.0 MBP68A92B100S92
Who is behind Preact
From its own pages and public records, with sources
Preact
since 2015[13]
Its story
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]
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]
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]
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.
