developit / preact-without-babel

:racehorse: How to use Preact in (native) ES2015, without Babel or JSX.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

🐎 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

About

:racehorse: How to use Preact in (native) ES2015, without Babel or JSX.

License:MIT License


Languages

Language:JavaScript 80.2%Language:HTML 19.8%