ReactDOMSharedInternals.js — react Source File
Architecture documentation for ReactDOMSharedInternals.js, a javascript file in the react codebase. 3 imports, 0 dependents.
Entity Profile
Dependency Diagram
graph LR 71fdc64c_0189_8a6a_0188_a18c7c3aad22["ReactDOMSharedInternals.js"] a4b0922c_f703_f99d_9884_88c43f8f2825["ReactDOMTypes.js"] 71fdc64c_0189_8a6a_0188_a18c7c3aad22 --> a4b0922c_f703_f99d_9884_88c43f8f2825 ee448c5a_bbb1_876b_443a_d70daee16237["ReactEventPriorities"] 71fdc64c_0189_8a6a_0188_a18c7c3aad22 --> ee448c5a_bbb1_876b_443a_d70daee16237 4321c04c_6e7b_409b_4c59_c09fbf7074a8["noop"] 71fdc64c_0189_8a6a_0188_a18c7c3aad22 --> 4321c04c_6e7b_409b_4c59_c09fbf7074a8 style 71fdc64c_0189_8a6a_0188_a18c7c3aad22 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 type {EventPriority} from 'react-reconciler/src/ReactEventPriorities';
import type {HostDispatcher} from './shared/ReactDOMTypes';
import noop from 'shared/noop';
// This should line up with NoEventPriority from react-reconciler/src/ReactEventPriorities
// but we can't depend on the react-reconciler from this isomorphic code.
export const NoEventPriority: EventPriority = (0: any);
type ReactDOMInternals = {
d /* ReactDOMCurrentDispatcher */: HostDispatcher,
p /* currentUpdatePriority */: EventPriority,
findDOMNode:
| null
| ((componentOrElement: component(...props: any)) => null | Element | Text),
};
function requestFormReset(element: HTMLFormElement) {
throw new Error(
'Invalid form element. requestFormReset must be passed a form that was ' +
'rendered by React.',
);
}
const DefaultDispatcher: HostDispatcher = {
f /* flushSyncWork */: noop,
r /* requestFormReset */: requestFormReset,
D /* prefetchDNS */: noop,
C /* preconnect */: noop,
L /* preload */: noop,
m /* preloadModule */: noop,
X /* preinitScript */: noop,
S /* preinitStyle */: noop,
M /* preinitModuleScript */: noop,
};
const Internals: ReactDOMInternals = {
d /* ReactDOMCurrentDispatcher */: DefaultDispatcher,
p /* currentUpdatePriority */: NoEventPriority,
findDOMNode: null,
};
export default Internals;
Domain
Subdomains
Functions
Dependencies
- ReactDOMTypes.js
- ReactEventPriorities
- noop
Source
Frequently Asked Questions
What does ReactDOMSharedInternals.js do?
ReactDOMSharedInternals.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 ReactDOMSharedInternals.js?
ReactDOMSharedInternals.js defines 1 function(s): requestFormReset.
What does ReactDOMSharedInternals.js depend on?
ReactDOMSharedInternals.js imports 3 module(s): ReactDOMTypes.js, ReactEventPriorities, noop.
Where is ReactDOMSharedInternals.js in the architecture?
ReactDOMSharedInternals.js is located at packages/react-dom/src/ReactDOMSharedInternals.js (domain: BabelCompiler, subdomain: Validation, directory: packages/react-dom/src).
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free