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
96 B
JavaScript
5 lines
96 B
JavaScript
var _div;
|
|
function F(Component) {
|
|
return <>{_div || (_div = <div>f</div>)}<Component /></>;
|
|
}
|