Skip to content

Latest commit

 

History

History
21 lines (16 loc) · 471 Bytes

README.md

File metadata and controls

21 lines (16 loc) · 471 Bytes

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"
  ]
}