We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6d56705 commit ed35cfcCopy full SHA for ed35cfc
2 files changed
test/fixtures/stateless-functional-components/actual.js
@@ -1,3 +1,5 @@
1
+import { createElement } from 'react';
2
+
3
const Foo1 = () => (
4
<div />
5
);
@@ -98,4 +100,12 @@ const Foo9 = () => {
98
100
99
101
Foo9.propTypes = {
102
foo: React.PropTypes.string
103
+};
104
105
+const Foo10 = () => {
106
+ return createElement("div", null);
107
108
109
+Foo10.propTypes = {
110
+ foo: React.PropTypes.string
111
};
test/fixtures/stateless-functional-components/expected.js
@@ -1,5 +1,7 @@
"use strict";
+var _react = require("react");
var Foo1 = function Foo1() {
6
return React.createElement("div", null);
7
@@ -64,4 +66,8 @@ function Foo8() {
64
66
65
67
var Foo9 = function Foo9() {
68
69
70
71
+var Foo10 = function Foo10() {
72
+ return (0, _react.createElement)("div", null);
73
0 commit comments