Consider jsxFrag as set when it's set to the default value (#11295)

* Consider jsxFrag as set when it's set to the default value

* Test #11294
This commit is contained in:
Nicolò Ribaudo
2020-03-20 22:29:50 +01:00
committed by GitHub
parent bb6a1580d2
commit 87b2781046
7 changed files with 27 additions and 2 deletions

View File

@@ -0,0 +1,3 @@
/* @jsxFrag React.Fragment */
/* @jsx h */
<>Test</>;

View File

@@ -0,0 +1,5 @@
{
"plugins": [
"transform-react-jsx"
]
}

View File

@@ -0,0 +1,4 @@
/* @jsxFrag React.Fragment */
/* @jsx h */
h(React.Fragment, null, "Test");