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.
- Host: GitHub
- URL: https://github.com/developit/preact-without-babel
- Owner: developit
- License: mit
- Created: 2016-01-30T01:30:16.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2022-06-03T00:06:58.000Z (over 3 years ago)
- Last Synced: 2025-04-10T11:16:10.889Z (9 months ago)
- Language: JavaScript
- Homepage:
- Size: 6.84 KB
- Stars: 79
- Watchers: 4
- Forks: 14
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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