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

algolia-places-react

62
Stars
19
Forks
Watchers

React/preact wrapper for Algolia Places

react-tags

455
Stars
171
Forks
Watchers

⚛️ Legacy repo for the fantastically simple tagging component for your React projects (legacy repo)

merkur

47
Stars
6
Forks
Watchers

tiny extensible javascript library for front-end microservices

preact-mdc

23
Stars
3
Forks
Watchers

material design components for preact using material-components-web sass styles (for live demo click the link below)

preact-redux-isomorphic

88
Stars
9
Forks
Watchers

preact-redux-isomorphic PWA SPA SSR best practices and libraries in under 80kB page size (for live demo click the link below)

preact-hooks-unistore

32
Stars
1
Forks
Watchers

A custom Preact hook to wire up components to Unistore.

selection

2.4k
Stars
139
Forks
Watchers

✨ Viselect - A high performance and lightweight library to add a visual way of selecting elements, just like on your Desktop. Zero dependencies, super small. Support for major frameworks!

cra-preact

27
Stars
3
Forks
Watchers

Comfort of CRA + preact without ejecting 🔥

Notify

139
Stars
22
Forks
Watchers

A small deno deploy / self hosted solution to send web push notifications with webhooks