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

eslint-plugin-validate-jsx-nesting

58
Stars
1
Forks
Watchers

ESLint Plugin to Validate JSX Nestings

anonymous-web

29
Stars
8
Forks
Watchers

💬 A PreactJS powered progressive web (chat) application (Not active)

blaze

2.2k
Stars
269
Forks
Watchers

âš¡ File sharing progressive web app built using WebTorrent and WebSockets

chirrapp

83
Stars
11
Forks
Watchers

Chirr App splits text into tweets and posts it as a thread

cpreact

33
Stars
3
Forks
Watchers

Build React from Scratch :tada:

Smallest "React-like" + Redux starter EVER - 13KB min&gzip

instapy-gui

396
Stars
91
Forks
Watchers

gui for instapy automation

hueify

90
Stars
10
Forks
Watchers

💡Simple controller for your Philips Hue lights, based on web technologies.

progressive-web-app-starter

19
Stars
4
Forks
Watchers

Preact based starter kit for making a Progressive Web App (PWA).

browser-extension

654
Stars
51
Forks
Watchers

Browser Extension Template with ESbuild builds, support for React, Preact, Typescript, Tailwind, Manifest V3/V2 support and multi browser build including Chrome, Firefox, Safari, Edge, Brave.