Babeljs JSX plugin for blacklead
npm install babel-plugin-blacklead-jsx
This plugin transforms JSX code in your projects to work with the Inferno virtual dom library. It also allows control statements (i.e.
Note! This plugin has been built for use in Babel 6.x environments.
```
npm install babel-plugin-blacklead-jsx --save
And configure your .babelrc file like the following:
``
{
"plugins": ["blacklead-jsx"]
}
`javascript`
IfBlock
On an array of objects:
`javascript`
{ item.title } with key { key }
On an object of objects:
`javascript`
{ items[key].title }
`javascript``
IfBlock
ElseIfBlock
ElseBlock
This repo is mainly a fork of https://github.com/trueadm/babel-plugin-inferno