babel-preset-crank

0.2.0 • Public • Published

babel-preset-crank

Babel preset to transform JSX into Crank createElement calls.
Without this plugin you must add the comment /** @jsx createElement */ and import { createElement} from '@bikeshaving/crank'; to the top of every file you write Crank components in.

Install

npm install babel-preset-crank --save-dev

Usage

Make or update your .babelrc config file with the preset:

{
  "presets": [
    "crank"
  ]
}

/babel-preset-crank/

    Package Sidebar

    Install

    npm i babel-preset-crank

    Weekly Downloads

    5

    Version

    0.2.0

    License

    MIT

    Unpacked Size

    3.05 kB

    Total Files

    4

    Last publish

    Collaborators

    • ryhinchey