Skip to content
🐎 How to use Preact in (native) ES2015, without Babel or JSX.
JavaScript HTML
Branch: master
Clone or download
Latest commit fa840ce Aug 31, 2016
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.gitignore Initial commit Jan 30, 2016
LICENSE Initial commit Jan 30, 2016
README.md Update for ES2015 rewrite Jun 1, 2016
index.html Replace npmcdn.com with unpkg.com Aug 31, 2016
index.js Style tweaks Jun 1, 2016

README.md

🐎 Preact in (native) ES2015, without Babel or JSX

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

This repo contains a simple example of how to use Preact in any modern ES2015 JavaScript environment. This includes the current versions of Chrome, Firefox, Edge and Node.JS.

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

View Demo on JSFiddle


🐴 Supporting older browsers? Check out Preact in ES3

You can’t perform that action at this time.