* Mark transpiled JSX elements as pure * Avoid duble annotation * Add "pure" option to the React preset * Fix generator indentation * Update tests * Add tests for the "pure" option * Update windows fixtures
18 lines
256 B
JavaScript
18 lines
256 B
JavaScript
function render(text) {
|
|
var _ref = <foo>{text}</foo>;
|
|
|
|
return function () {
|
|
return _ref;
|
|
};
|
|
}
|
|
|
|
var Foo2 = require("Foo");
|
|
|
|
function createComponent(text) {
|
|
var _ref2 = <Foo2>{text}</Foo2>;
|
|
|
|
return function render() {
|
|
return _ref2;
|
|
};
|
|
}
|