ReactSyntheticEventType.js — react Source File
Architecture documentation for ReactSyntheticEventType.js, a javascript file in the react codebase. 2 imports, 7 dependents.
Entity Profile
Dependency Diagram
graph LR 3632e1a4_9237_b583_7260_c67d392d0405["ReactSyntheticEventType.js"] 4e9925e9_ca97_8d79_6ffa_a9347d262615["DOMEventNames.js"] 3632e1a4_9237_b583_7260_c67d392d0405 --> 4e9925e9_ca97_8d79_6ffa_a9347d262615 42892443_e223_3da0_aeb9_e1b32a408fb0["ReactInternalTypes"] 3632e1a4_9237_b583_7260_c67d392d0405 --> 42892443_e223_3da0_aeb9_e1b32a408fb0 816b54e5_c63c_f8b2_68e8_0c637e281f03["DOMPluginEventSystem.js"] 816b54e5_c63c_f8b2_68e8_0c637e281f03 --> 3632e1a4_9237_b583_7260_c67d392d0405 a235366c_1abe_162c_b9bf_7fbbfb597584["BeforeInputEventPlugin.js"] a235366c_1abe_162c_b9bf_7fbbfb597584 --> 3632e1a4_9237_b583_7260_c67d392d0405 ddc0fe5b_559e_c0f1_b50a_2b1305b3c3d7["ChangeEventPlugin.js"] ddc0fe5b_559e_c0f1_b50a_2b1305b3c3d7 --> 3632e1a4_9237_b583_7260_c67d392d0405 5c7e27b3_eb27_811d_04b8_b882f63e7494["EnterLeaveEventPlugin.js"] 5c7e27b3_eb27_811d_04b8_b882f63e7494 --> 3632e1a4_9237_b583_7260_c67d392d0405 f81462d0_b06e_fbf9_f1b8_93352f59d5eb["ScrollEndEventPlugin.js"] f81462d0_b06e_fbf9_f1b8_93352f59d5eb --> 3632e1a4_9237_b583_7260_c67d392d0405 b8a5c95d_02fb_4719_0efd_4463f2546996["SelectEventPlugin.js"] b8a5c95d_02fb_4719_0efd_4463f2546996 --> 3632e1a4_9237_b583_7260_c67d392d0405 43bccccc_6fb9_1e3f_9c97_ea90d6d01475["SimpleEventPlugin.js"] 43bccccc_6fb9_1e3f_9c97_ea90d6d01475 --> 3632e1a4_9237_b583_7260_c67d392d0405 style 3632e1a4_9237_b583_7260_c67d392d0405 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 type for SyntheticEvent class that includes private properties
* @flow
*/
import type {Fiber} from 'react-reconciler/src/ReactInternalTypes';
import type {DOMEventName} from './DOMEventNames';
export type DispatchConfig = {
dependencies?: Array<DOMEventName>,
phasedRegistrationNames: {
bubbled: null | string,
captured: null | string,
},
registrationName?: string,
};
type BaseSyntheticEvent = {
isPersistent: () => boolean,
isPropagationStopped: () => boolean,
_dispatchInstances?: null | Array<Fiber | null> | Fiber,
_dispatchListeners?: null | Array<Function> | Function,
_targetInst: Fiber,
nativeEvent: Event,
target?: mixed,
relatedTarget?: mixed,
type: string,
currentTarget: null | EventTarget,
};
export type KnownReactSyntheticEvent = BaseSyntheticEvent & {
_reactName: string,
};
export type UnknownReactSyntheticEvent = BaseSyntheticEvent & {
_reactName: null,
};
export type ReactSyntheticEvent =
| KnownReactSyntheticEvent
| UnknownReactSyntheticEvent;
Domain
Subdomains
Dependencies
- DOMEventNames.js
- ReactInternalTypes
Imported By
- packages/react-dom-bindings/src/events/plugins/BeforeInputEventPlugin.js
- packages/react-dom-bindings/src/events/plugins/ChangeEventPlugin.js
- packages/react-dom-bindings/src/events/DOMPluginEventSystem.js
- packages/react-dom-bindings/src/events/plugins/EnterLeaveEventPlugin.js
- packages/react-dom-bindings/src/events/plugins/ScrollEndEventPlugin.js
- packages/react-dom-bindings/src/events/plugins/SelectEventPlugin.js
- packages/react-dom-bindings/src/events/plugins/SimpleEventPlugin.js
Source
Frequently Asked Questions
What does ReactSyntheticEventType.js do?
ReactSyntheticEventType.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 ReactSyntheticEventType.js?
ReactSyntheticEventType.js defines 2 function(s): BaseSyntheticEvent.isPersistent, BaseSyntheticEvent.isPropagationStopped.
What does ReactSyntheticEventType.js depend on?
ReactSyntheticEventType.js imports 2 module(s): DOMEventNames.js, ReactInternalTypes.
What files import ReactSyntheticEventType.js?
ReactSyntheticEventType.js is imported by 7 file(s): BeforeInputEventPlugin.js, ChangeEventPlugin.js, DOMPluginEventSystem.js, EnterLeaveEventPlugin.js, ScrollEndEventPlugin.js, SelectEventPlugin.js, SimpleEventPlugin.js.
Where is ReactSyntheticEventType.js in the architecture?
ReactSyntheticEventType.js is located at packages/react-dom-bindings/src/events/ReactSyntheticEventType.js (domain: BabelCompiler, subdomain: Validation, directory: packages/react-dom-bindings/src/events).
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free