:horse: Preact in ES3: without Babel, ES2015 or JSX

April 28, 2022 ยท View on GitHub

Preact doesn't require that you use any sort of build tooling or transpiler.

This repo contains a bare-bones example of how to use Preact in JavaScript of yesterday.

Examples are included for both "Classful" Components, and stateless pure functional components.

View Demo on JSFiddle