babel-plugin-transform-kontainer-js

Compile JSX to kontainer-js API calls

Usage no npm install needed!

<script type="module">
  import babelPluginTransformKontainerJs from 'https://cdn.skypack.dev/babel-plugin-transform-kontainer-js';
</script>

README

babel-plugin-transform-kontainer-js

Turn JSX into kontainer-js function calls

Installation

$ npm install babel-plugin-transform-kontainer-js

Usage

Via .babelrc (Recommended)

.babelrc

{
  "plugins": ["transform-kontainer-js"]
}

Via CLI

$ babel --plugins transform-kontainer-js script.js

Via Node API

require("babel-core").transform("code", {
  plugins: ["transform-kontainer-js"]
});