Skip to content

Commit 9b777a8

Browse files
committed
Fix React.Element Flow type
1 parent c67930e commit 9b777a8

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

lib/Draggable.es6

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -238,7 +238,7 @@ export default class Draggable extends React.Component {
238238
});
239239
};
240240

241-
render(): ReactElement {
241+
render(): React.Element {
242242
let style = {}, svgTransform = null;
243243

244244
// Add a CSS transform to move the element around. This allows us to move the element around

lib/DraggableCore.es6

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -419,7 +419,7 @@ export default class DraggableCore extends React.Component {
419419
return this.handleDragStop(e);
420420
};
421421

422-
render(): ReactElement {
422+
render(): React.Element {
423423
// Reuse the child provided
424424
// This makes it flexible to use whatever element is wanted (div, ul, etc)
425425
return React.cloneElement(React.Children.only(this.props.children), {

0 commit comments

Comments
 (0)