https://github.com/featurist/babel-preset-hyperdom
https://github.com/featurist/babel-preset-hyperdom
Last synced: about 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/featurist/babel-preset-hyperdom
- Owner: featurist
- Created: 2017-02-22T07:37:35.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2019-02-26T17:49:19.000Z (about 6 years ago)
- Last Synced: 2024-04-30T03:02:39.306Z (about 1 year ago)
- Language: JavaScript
- Size: 7.81 KB
- Stars: 1
- Watchers: 5
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
# babel-preset-hyperdom
> Babel presets for hyperdom: JSX, binding syntax
## Example
In
```jsx
```
Out
```js
hyperdom.jsx("input", { type: "text", binding: [item[n].method(), "name"] });
```## Installation
```sh
npm install --save-dev babel-preset-hyperdom
```For babel 6
```sh
npm install --save-dev [email protected]
```## Usage
### Via `.babelrc` (Recommended)
**.babelrc**
```json
{
"presets": ["hyperdom"]
}
```### Via CLI
```sh
babel --presets hyperdom script.js
```### Via Node API
```javascript
require("babel-core").transform("code", {
presets: ["hyperdom"]
});
```## We're Hiring!
Featurist provides full stack, feature driven development teams. Want to join us? Check out [our career opportunities](https://www.featurist.co.uk/careers/).