https://github.com/developit/babel-preset-preact
Babel preset to transform JSX into h() calls
https://github.com/developit/babel-preset-preact
Last synced: 6 months ago
JSON representation
Babel preset to transform JSX into h() calls
- Host: GitHub
- URL: https://github.com/developit/babel-preset-preact
- Owner: developit
- License: mit
- Created: 2015-10-29T21:03:49.000Z (about 10 years ago)
- Default Branch: master
- Last Pushed: 2019-07-09T17:53:28.000Z (over 6 years ago)
- Last Synced: 2025-06-20T20:01:11.641Z (6 months ago)
- Language: JavaScript
- Size: 6.84 KB
- Stars: 30
- Watchers: 3
- Forks: 7
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# babel-preset-preact
Babel preset to transform JSX into h() calls.
### Install
Via NPM
```javascript
npm install babel-preset-preact --save-dev
```
or Yarn
```javascript
yarn add babel-preset-preact --dev
```
### Usage
Make or update your .babelrc config file with the preset:
```javascript
{
"presets": [
"preact"
]
}
```
Via package.json
```javascript
...
"babel": {
"presets": [
"es2015",
"preact"
],
"plugins": [
]
},
...
```