Preact.js topic
Preact.js is a lightweight React alternative with the same API.
Similarities to React
- ES6 Class, hooks, and Functional Components
- Compatibility via a simple preact/compat alias
- JSX, VDOM, DevTools, HMR, SSR.
- Cross-browser compatibility
- Transparent asynchronous rendering with a pluggable scheduler
Differences from React
- Works in the browser without any transpilation steps
- Syntactic sugar
-
props
,state
andcontext
are passed torender()
- Standard HTML attributes like
class
andfor
can be used instead ofclassName
andhtmlFor
-
preact-realworld-example-app
Exemplary realworld application built with Preact
fpreact
fpreact provides an alternative api for creating preact components, heavily inspired by elm.
design-system-utils
👩🎨 Access your design tokens with ease
colors-app
:art: A PWA for copying values from popular color palettes. Supports HEX, RGB, and HSL formats.
react-native-react-bridge
An easy way to integrate your React (or Preact/React Native Web) app into React Native app with WebView.
electron-quill
A desktop text editor app built with Electron, Preact, and Quill
chat-with-deno-and-preact
Chat app with Deno + Preact
etiketai
Etiketai is an online tool designed to label images, useful for training AI models
disco.chat
Add real-time ephemeral chat to any webpage.