registerEvents() — react Function Reference
Architecture documentation for the registerEvents() function in BeforeInputEventPlugin.js from the react codebase.
Entity Profile
Dependency Diagram
graph TD 862ab126_dba9_2378_bb9d_a1e4402063c8["registerEvents()"] a235366c_1abe_162c_b9bf_7fbbfb597584["BeforeInputEventPlugin.js"] 862ab126_dba9_2378_bb9d_a1e4402063c8 -->|defined in| a235366c_1abe_162c_b9bf_7fbbfb597584 db2a0ac3_1faf_8e02_55e8_f299ce8da5e9["registerTwoPhaseEvent()"] 862ab126_dba9_2378_bb9d_a1e4402063c8 -->|calls| db2a0ac3_1faf_8e02_55e8_f299ce8da5e9 style 862ab126_dba9_2378_bb9d_a1e4402063c8 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
packages/react-dom-bindings/src/events/plugins/BeforeInputEventPlugin.js lines 58–89
function registerEvents() {
registerTwoPhaseEvent('onBeforeInput', [
'compositionend',
'keypress',
'textInput',
'paste',
]);
registerTwoPhaseEvent('onCompositionEnd', [
'compositionend',
'focusout',
'keydown',
'keypress',
'keyup',
'mousedown',
]);
registerTwoPhaseEvent('onCompositionStart', [
'compositionstart',
'focusout',
'keydown',
'keypress',
'keyup',
'mousedown',
]);
registerTwoPhaseEvent('onCompositionUpdate', [
'compositionupdate',
'focusout',
'keydown',
'keypress',
'keyup',
'mousedown',
]);
}
Domain
Subdomains
Calls
Source
Frequently Asked Questions
What does registerEvents() do?
registerEvents() is a function in the react codebase, defined in packages/react-dom-bindings/src/events/plugins/BeforeInputEventPlugin.js.
Where is registerEvents() defined?
registerEvents() is defined in packages/react-dom-bindings/src/events/plugins/BeforeInputEventPlugin.js at line 58.
What does registerEvents() call?
registerEvents() calls 1 function(s): registerTwoPhaseEvent.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free