Home / File/ ReactDOMContainer.js — react Source File

ReactDOMContainer.js — react Source File

Architecture documentation for ReactDOMContainer.js, a javascript file in the react codebase. 2 imports, 0 dependents.

File javascript BabelCompiler Validation 2 imports 1 functions

Entity Profile

Dependency Diagram

graph LR
  55e46d6c_2cf4_8edc_f415_7135bfe84352["ReactDOMContainer.js"]
  79306122_0617_c4ea_94ca_a596414f3150["HTMLNodeType.js"]
  55e46d6c_2cf4_8edc_f415_7135bfe84352 --> 79306122_0617_c4ea_94ca_a596414f3150
  8344de1b_978c_be0f_eebd_38ccc4962a93["ReactFeatureFlags"]
  55e46d6c_2cf4_8edc_f415_7135bfe84352 --> 8344de1b_978c_be0f_eebd_38ccc4962a93
  style 55e46d6c_2cf4_8edc_f415_7135bfe84352 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

/**
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 *
 * @flow
 */

import {disableCommentsAsDOMContainers} from 'shared/ReactFeatureFlags';

import {
  ELEMENT_NODE,
  COMMENT_NODE,
  DOCUMENT_NODE,
  DOCUMENT_FRAGMENT_NODE,
} from './HTMLNodeType';

export function isValidContainer(node: any): boolean {
  return !!(
    node &&
    (node.nodeType === ELEMENT_NODE ||
      node.nodeType === DOCUMENT_NODE ||
      node.nodeType === DOCUMENT_FRAGMENT_NODE ||
      (!disableCommentsAsDOMContainers &&
        node.nodeType === COMMENT_NODE &&
        (node: any).nodeValue === ' react-mount-point-unstable '))
  );
}

Domain

Subdomains

Functions

Dependencies

Frequently Asked Questions

What does ReactDOMContainer.js do?
ReactDOMContainer.js is a source file in the react codebase, written in javascript. It belongs to the BabelCompiler domain, Validation subdomain.
What functions are defined in ReactDOMContainer.js?
ReactDOMContainer.js defines 1 function(s): isValidContainer.
What does ReactDOMContainer.js depend on?
ReactDOMContainer.js imports 2 module(s): HTMLNodeType.js, ReactFeatureFlags.
Where is ReactDOMContainer.js in the architecture?
ReactDOMContainer.js is located at packages/react-dom-bindings/src/client/ReactDOMContainer.js (domain: BabelCompiler, subdomain: Validation, directory: packages/react-dom-bindings/src/client).

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free