* 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
12 lines
179 B
JavaScript
12 lines
179 B
JavaScript
var _ref = <foo />;
|
|
|
|
function render() {
|
|
return _ref;
|
|
}
|
|
|
|
var _ref2 = <div className="foo"><input type="checkbox" checked={true} /></div>;
|
|
|
|
function render() {
|
|
return _ref2;
|
|
}
|