Skip to content

Latest commit

 

History

History
31 lines (21 loc) · 531 Bytes

README.md

File metadata and controls

31 lines (21 loc) · 531 Bytes

babel-preset-jsxz

Babel preset for JSXZ transform

see https://github.com/kbrw/babel-plugin-transform-jsxz

For more explanation about the JSXZ transformation : generate your react component from html at compile time.

Install

npm install --save babel-preset-jsxz

Usage

{
  "presets": ["jsxz"]
}

You can specify the HTML template relative dir with the "dir" option.

{
  "presets": [["jsxz",{dir: "/path/to/my/templates"}]]
}