Skip to content

Commit 875c7b6

Browse files
committed
Use destructured import for findDOMNode
1 parent c64cfe4 commit 875c7b6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/SortableContainer/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import React, {Component, PropTypes} from 'react';
2-
import ReactDOM from 'react-dom';
2+
import {findDOMNode} from 'react-dom';
33
import invariant from 'invariant';
44

55
import Manager from '../Manager';
@@ -105,7 +105,7 @@ export default function sortableContainer(WrappedComponent, config = {withRef: f
105105

106106
this.container = typeof getContainer === 'function'
107107
? getContainer(this.getWrappedInstance())
108-
: ReactDOM.findDOMNode(this);
108+
: findDOMNode(this);
109109
this.document = this.container.ownerDocument || document;
110110
this.scrollContainer = useWindowAsScrollContainer
111111
? this.document.body

0 commit comments

Comments
 (0)