1.1.2 • Published 6 years ago
@extjs/reactor-babel-plugin v1.1.2
Ext JS Reactor Babel Plugin
This Babel plugin allows you to import Ext JS Components as React Components using the following syntax...
import { Grid, Panel } from '@extjs/ext-react';
... which this plugin converts to ...
import { reactify } from '@extjs/reactor';
const Grid = reactify('grid');
const Panel = reactify('panel');
You can also use it to load components from the classic toolkit:
import { Grid, Panel } from '@extjs/reactor/classic';
Installation
Install via npm...
npm install --save-dev @extjs/reactor-babel-plugin
...then add to .babelrc:
{
"presets": ["es2015", "react"],
"plugins": ["@extjs/reactor-babel-plugin"]
}