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 and context are passed to render()
    • Standard HTML attributes like class and for can be used instead of className and htmlFor

List Preact.js repositories

preact-realworld-example-app

46
Stars
5
Forks
Watchers

Exemplary realworld application built with Preact

fpreact

47
Stars
4
Forks
Watchers

fpreact provides an alternative api for creating preact components, heavily inspired by elm.

design-system-utils

536
Stars
13
Forks
Watchers

👩‍🎨 Access your design tokens with ease

colors-app

98
Stars
18
Forks
Watchers

:art: A PWA for copying values from popular color palettes. Supports HEX, RGB, and HSL formats.

react-native-react-bridge

241
Stars
19
Forks
Watchers

An easy way to integrate your React (or Preact/React Native Web) app into React Native app with WebView.

electron-quill

43
Stars
10
Forks
Watchers

A desktop text editor app built with Electron, Preact, and Quill

chat-with-deno-and-preact

27
Stars
9
Forks
Watchers

Chat app with Deno + Preact

etiketai

76
Stars
10
Forks
Watchers

Etiketai is an online tool designed to label images, useful for training AI models

disco.chat

93
Stars
10
Forks
Watchers

Add real-time ephemeral chat to any webpage.