Home / Function/ registerEvents() — react Function Reference

registerEvents() — react Function Reference

Architecture documentation for the registerEvents() function in SelectEventPlugin.js from the react codebase.

Entity Profile

Dependency Diagram

graph TD
  51529c24_0212_81c9_1c46_1b6de8200fbc["registerEvents()"]
  b8a5c95d_02fb_4719_0efd_4463f2546996["SelectEventPlugin.js"]
  51529c24_0212_81c9_1c46_1b6de8200fbc -->|defined in| b8a5c95d_02fb_4719_0efd_4463f2546996
  db2a0ac3_1faf_8e02_55e8_f299ce8da5e9["registerTwoPhaseEvent()"]
  51529c24_0212_81c9_1c46_1b6de8200fbc -->|calls| db2a0ac3_1faf_8e02_55e8_f299ce8da5e9
  style 51529c24_0212_81c9_1c46_1b6de8200fbc fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

packages/react-dom-bindings/src/events/plugins/SelectEventPlugin.js lines 32–44

function registerEvents() {
  registerTwoPhaseEvent('onSelect', [
    'focusout',
    'contextmenu',
    'dragend',
    'focusin',
    'keydown',
    'keyup',
    'mousedown',
    'mouseup',
    'selectionchange',
  ]);
}

Domain

Subdomains

Frequently Asked Questions

What does registerEvents() do?
registerEvents() is a function in the react codebase, defined in packages/react-dom-bindings/src/events/plugins/SelectEventPlugin.js.
Where is registerEvents() defined?
registerEvents() is defined in packages/react-dom-bindings/src/events/plugins/SelectEventPlugin.js at line 32.
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