# Preact

> Fast 3kB alternative to React with the same modern API

Source: https://talira.ai/catalog/preact-xsg58zsf
Every listing: https://talira.ai/catalog.md

- Kind: Open source
- Types: Library
- Categories: [libraries / ui frameworks](https://talira.ai/categories/libraries/ui-frameworks), [languages / javascript](https://talira.ai/categories/languages/javascript)
- Licence: MIT[^1]
- Pricing: Free and open source[^1]
- Pricing notes: Free and open source.
- Free tier: yes[^1]
- Backed by: [Preact](https://talira.ai/orgs/preact.md)

Preact is a 3 KB JavaScript UI library with the same modern API as [React](https://talira.ai/catalog/react-a48drvqv.md): components, hooks and a Virtual DOM, the thinnest possible abstraction over the real DOM, with real event handlers and batched updates. It runs in the browser without a build step, is small enough to embed in widgets or parts of a page, and accepts standard HTML attributes like class and for. Aliasing react to preact/compat in your bundler lets it use components from the React ecosystem.

## Links

- Website: https://preactjs.com/
- GitHub: https://github.com/preactjs/preact
- Docs: https://preactjs.com/guide/v11/getting-started

## Problems it solves

- a smaller alternative to React for a page where bundle size matters
- build an embeddable widget with React-style components but a tiny bundle
- use React components with a much lighter runtime
- write components without a build step in the browser

## Features

- 3 KB
- React-compatible API with hooks
- preact/compat for React components
- no build step required
- batched updates

## Trust

Overall: 0.27 out of 1.
Signals: backing 0.30, extensibility 0.00.

- has a company behind it

Warnings:

- GitHub activity not fetched yet

## Alternatives

- [Lit](https://talira.ai/catalog/lit-k21shh94.md): Simple. Fast. Web Components.
- [Svelte](https://talira.ai/catalog/svelte-madys0ms.md): Web development for the rest of us
- [Vue.js](https://talira.ai/catalog/vue-js-x09qxxh1.md): The Progressive JavaScript Framework
- [React](https://talira.ai/catalog/react-a48drvqv.md): The library for web and native user interfaces
- [SolidJS](https://talira.ai/catalog/solidjs-s90mcwkz.md): Fine-grained reactive UI
- [Alpine.js](https://talira.ai/catalog/alpine-js-yfx5mnga.md): Your new, lightweight, JavaScript framework

## Sources

[^1]: https://github.com/preactjs/preact/blob/main/LICENSE (checked 23 Nov 2026)
