An open API service indexing awesome lists of open source software.

https://github.com/developit/preact-without-babel

:racehorse: How to use Preact in (native) ES2015, without Babel or JSX.
https://github.com/developit/preact-without-babel

Last synced: 8 months ago
JSON representation

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

Awesome Lists containing this project

README

          

# :racehorse: 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](http://jsfiddle.net/developit/e281k4wz/)

---

> :horse: Supporting older browsers? Check out [Preact in ES3](https://github.com/developit/preact-in-es3)

[Preact]: https://github.com/preactjs/preact