Skip to content

Commit 8718df4

Browse files
committed
Remove React.createFactory call on new React versions since React throws warning about no render method defined when component is wrapped with createFactory
Warning: Component(...): No `render` method found on the returned component instance: you may have forgotten to define `render` in your component or you may have accidentally tried to render an element whose type is a function that isn't a React component.
1 parent 1e1e268 commit 8718df4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/react-input-placeholder.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -147,8 +147,8 @@ module.exports = function(React) {
147147
};
148148
} else { /* -- end */
149149
return {
150-
Input: React.createFactory(createShimmedElement(React, 'input', 'Input')),
151-
Textarea: React.createFactory(createShimmedElement(React, 'textarea', 'Textarea'))
150+
Input: createShimmedElement(React, 'input', 'Input'),
151+
Textarea: createShimmedElement(React, 'textarea', 'Textarea')
152152
};
153153
}
154154
};

0 commit comments

Comments
 (0)