Skip to content

Commit

Permalink
Use destructured import for findDOMNode
Browse files Browse the repository at this point in the history
  • Loading branch information
clauderic committed Mar 9, 2017
1 parent b5efba8 commit 22e141b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/SortableContainer/index.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React, {Component, PropTypes} from 'react';
import ReactDOM from 'react-dom';
import {findDOMNode} from 'react-dom';
import invariant from 'invariant';

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

this.container = typeof getContainer === 'function'
? getContainer(this.getWrappedInstance())
: ReactDOM.findDOMNode(this);
: findDOMNode(this);
this.document = this.container.ownerDocument || document;
this.scrollContainer = useWindowAsScrollContainer
? this.document.body
Expand Down

0 comments on commit 22e141b

Please sign in to comment.