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

35 lines
662 B
JavaScript
Raw Normal View History

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