Preact is a lightweight alternative to React that implements the same core component and hooks model in a tiny footprint. It provides a virtual DOM, diffing, and a familiar Component/JSX API, enabling developers to reuse much of their React knowledge. With preact/compat, many React libraries can be used directly, making migration or code sharing practical in performance-sensitive apps. Its focus on size and speed makes it attractive for embedded widgets, mobile web, and scenarios where initial load must be extremely fast. The library embraces modern patterns like functional components, hooks, and context while keeping the API surface minimal. Tooling integrations and ecosystem packages round out the experience, so teams can ship production apps without sacrificing bundle budgets.

Features

  • Tiny bundle size (~3.5 kB) making it highly performance-oriented
  • Near-same component model and API as React, enabling familiarity and ease of learning
  • Uses native DOM event system instead of synthetic events for improved performance and simpler behavior
  • Offers preact/compat layer to use React ecosystem libraries directly
  • Ships with TypeScript definitions for seamless typed development
  • Offers Signals—reactive primitives enabling automatic, efficient UI updates and state binding

Project Samples

Project Activity

See All Activity >

Categories

Frameworks

License

MIT License

Follow Preact

Preact Web Site

Other Useful Business Software
Forever Free Full-Stack Observability | Grafana Cloud Icon
Forever Free Full-Stack Observability | Grafana Cloud

Our generous forever free tier includes the full platform, including the AI Assistant, for 3 users with 10k metrics, 50GB logs, and 50GB traces.

Built on open standards like Prometheus and OpenTelemetry, Grafana Cloud includes Kubernetes Monitoring, Application Observability, Incident Response, plus the AI-powered Grafana Assistant. Get started with our generous free tier today.
Create free account
Rate This Project
Login To Rate This Project

User Reviews

Be the first to post a review of Preact!

Additional Project Details

Programming Language

JavaScript

Related Categories

JavaScript Frameworks

Registered

2025-09-05