swc/ecmascript/transforms/react/tests/jsx/fixture/issue-2177/output.mjs
강동윤 c0b0337d1d
fix(es): Fix easy bugs (#2178)
swc_ecma_parser:
 - Fix parsing of complex arrow expressions in a conditional expression. (#2174)
 - Report an error for wrong jsx, instead of `panic!`. (#2173)

swc_ecma_transforms_react:
 - `jsx`: Handle fragment with single child correctly. (#2177)

swc:
 - Ensure that #2170 is an invalid issue. (#2170)
2021-08-29 20:40:52 +00:00

9 lines
211 B
JavaScript

import { jsx as _jsx, Fragment as _Fragment } from "react/jsx-runtime";
export var App = function() {
return _jsx(_Fragment, {
children: _jsx("div", {
children: "1"
})
});
};