Ir para o conteúdo principal
Preact logo

Preact

Fast 3kB alternative to React with the same modern API

Fast 3kB alternative to React with the same modern API. A lightweight Virtual DOM library with React compatibility layer for seamless migration.

36K
GitHub Stars
supported
TypeScript
easy
Learning Curve
4.4
DX Score

Preços

Model
free
Plano Gratuito
MIT licensed, fully open source

Recursos

  • 3kB bundle size
  • React-compatible API
  • preact/compat alias
  • Virtual DOM
  • Hooks support
  • Automatic batching
  • Standard HTML attributes
  • Server-side rendering
  • Signals for state

Prós

  • + Tiny bundle size
  • + React ecosystem compatible
  • + Fast performance
  • + Easy migration from React
  • + Great for widgets and embeds

Contras

  • - Not 100% React compatible
  • - Smaller ecosystem
  • - Some React libs may not work
  • - Less community support

Melhor Para

startup indie hacker hobbyist

Alternativas

frontend lightweight react-compatible virtual-dom performance