mirror of
https://github.com/swc-project/swc.git
synced 2024-12-23 05:32:09 +03:00
c0b0337d1d
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)
9 lines
211 B
JavaScript
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"
|
|
})
|
|
});
|
|
};
|