Open alejofernandez opened 6 years ago
<></>
syntax is supported and this case was fixed with https://github.com/ramasilveyra/unreact/commit/71a53c7e121fceddc6fa92df8b7b4aac5e45ee69:
import React from 'react';
import PropTypes from 'prop-types';
const Foo = () => (
<React.Fragment>
<h1>Hi!</h1>
<p>Bye</p>
</React.Fragment>
);
export default Foo;
But this case is the only one missing:
import React, { Fragment } from 'react';
import PropTypes from 'prop-types';
const Foo = () => (
<Fragment>
<h1>Hi!</h1>
<p>Bye</p>
</Fragment>
);
export default Foo;
Currently they translate to
<undefined>
: