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-transitioning

43
Stars
7
Forks
Watchers

Preact components for easily implementing basic CSS animations and transitions

action-helper

25
Stars
0
Forks
Watchers

The simplest action creator for redux

preact-cli-plugin-env-vars

34
Stars
2
Forks
Watchers

🛠 Consume variables in your environment with the Preact CLI.

flowponent

129
Stars
1
Forks
Watchers

A small Preact/React library for defining workflow-like evolving views via generators

preact

36.2k
Stars
1.9k
Forks
Watchers

⚛️ Fast 3kB React alternative with the same modern API. Components & Virtual DOM.

react-hint

335
Stars
28
Forks
Watchers

Tooltip component for React, Preact, Inferno

next-translate

2.6k
Stars
206
Forks
Watchers

Next.js plugin + i18n API for Next.js 🌍 - Load page translations and use them in an easy way!

microsite

878
Stars
16
Forks
Watchers

Do more with less JavaScript. Microsite is a smarter, performance-obsessed static site generator powered by Preact and Snowpack.

wasmboy

1.4k
Stars
63
Forks
Watchers

Game Boy / Game Boy Color Emulator Library, 🎮written for WebAssembly using AssemblyScript. 🚀Demos built with Preact and Svelte. ⚛️