How to use rax-find-dom-node - 1 common examples

To help you get started, we’ve selected a few rax-find-dom-node examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github alibaba / rax / packages / mobx-rax / src / observer.js View on Github external
function findDOMNode(component) {
  if (baseFindDOMNode) {
    try {
      return baseFindDOMNode(component);
    } catch (e) {
      // findDOMNode will throw in react-test-renderer, see:
      // See https://github.com/mobxjs/mobx-react/issues/216
      // Is there a better heuristic?
      return null;
    }
  }
  return null;
}

rax-find-dom-node

Rax findDOMNode

BSD-3-Clause
Latest version published 4 years ago

Package Health Score

60 / 100
Full package analysis

Popular rax-find-dom-node functions

Similar packages