find-dom-node.js — react Source File
Architecture documentation for find-dom-node.js, a javascript file in the react codebase. 2 imports, 1 dependents.
Entity Profile
Dependency Diagram
graph LR f8429146_1d45_26dd_090f_7c5376f684ab["find-dom-node.js"] dd026ac1_6193_60a0_f5c1_cc7da4d3c4af["react-loader.js"] f8429146_1d45_26dd_090f_7c5376f684ab --> dd026ac1_6193_60a0_f5c1_cc7da4d3c4af 1e03480c_7f31_6e6a_5dc9_22841e2105d8["reactPaths"] f8429146_1d45_26dd_090f_7c5376f684ab --> 1e03480c_7f31_6e6a_5dc9_22841e2105d8 58e434e3_34f3_a439_db07_90934d2ad3e4["Code.js"] 58e434e3_34f3_a439_db07_90934d2ad3e4 --> f8429146_1d45_26dd_090f_7c5376f684ab style f8429146_1d45_26dd_090f_7c5376f684ab fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
/**
* Provides a standard way to access a DOM node across all versions of
* React.
*/
import {reactPaths} from './react-loader';
const React = window.React;
const ReactDOM = window.ReactDOM;
export function findDOMNode(target) {
const {needsReactDOM} = reactPaths();
if (needsReactDOM) {
return ReactDOM.findDOMNode(target);
} else {
// eslint-disable-next-line
return React.findDOMNode(target);
}
}
Domain
Subdomains
Functions
Dependencies
Source
Frequently Asked Questions
What does find-dom-node.js do?
find-dom-node.js is a source file in the react codebase, written in javascript. It belongs to the BabelCompiler domain, Entrypoint subdomain.
What functions are defined in find-dom-node.js?
find-dom-node.js defines 1 function(s): findDOMNode.
What does find-dom-node.js depend on?
find-dom-node.js imports 2 module(s): react-loader.js, reactPaths.
What files import find-dom-node.js?
find-dom-node.js is imported by 1 file(s): Code.js.
Where is find-dom-node.js in the architecture?
find-dom-node.js is located at fixtures/dom/src/find-dom-node.js (domain: BabelCompiler, subdomain: Entrypoint, directory: fixtures/dom/src).
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free