* 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
14 lines
177 B
JavaScript
14 lines
177 B
JavaScript
var _ref = <b></b>;
|
|
|
|
var _ref2 = <span></span>;
|
|
|
|
function render() {
|
|
var children = _ref;
|
|
|
|
if (someCondition) {
|
|
children = _ref2;
|
|
}
|
|
|
|
return <div>{children}</div>;
|
|
}
|