* 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
8 lines
168 B
JavaScript
8 lines
168 B
JavaScript
var TestComponent = React.createClass({
|
|
render: function () {
|
|
return /*#__PURE__*/babelHelpers.jsx("span", {
|
|
className: this.props.someProp
|
|
});
|
|
}
|
|
});
|