GT2/GT2-Android/node_modules/babel-plugin-react-transform/test/fixtures/code-react-create-class-wit.../expected.js

25 lines
498 B
JavaScript
Raw Normal View History

import _transformLib from 'transform-lib';
const _components = {
'my-component': {
displayName: 'my-component'
}
};
const _transformLib2 = _transformLib({
filename: '%FIXTURE_PATH%',
components: _components,
locals: [],
imports: []
});
function _wrapComponent(id) {
return function (Component) {
return _transformLib2(Component, id);
};
}
const MyComponent = _wrapComponent('my-component')(React.createClass({
displayName: 'my-component',
render: function () {}
}));