mirror of
https://github.com/hanzoai/babel.git
synced 2026-09-24 16:56:45 +00:00
* fix: plugin react-constant-elements transform JSXFrament not add container * test: add a jsx-in-frament test case for plugin-react-constant-elements * feat: hoist JSXFragment if possible * add more test cases --------- Co-authored-by: Huáng Jùnliàng <[email protected]>
5 lines
86 B
JavaScript
5 lines
86 B
JavaScript
var _span;
|
|
function C(x) {
|
|
return <div x={x} {..._span || (_span = <span />)} />;
|
|
}
|