22 lines
455 B
JavaScript
22 lines
455 B
JavaScript
/**
|
|
* Copyright (c) Nicolas Gallagher.
|
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
*
|
|
* This source code is licensed under the MIT license found in the
|
|
* LICENSE file in the root directory of this source tree.
|
|
*
|
|
*
|
|
*/
|
|
import { findDOMNode } from 'react-dom';
|
|
|
|
var findNodeHandle = function findNodeHandle(component) {
|
|
var node;
|
|
|
|
try {
|
|
node = findDOMNode(component);
|
|
} catch (e) {}
|
|
|
|
return node;
|
|
};
|
|
|
|
export default findNodeHandle; |