Home / Function/ registerEvents() — react Function Reference

registerEvents() — react Function Reference

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

Entity Profile

Dependency Diagram

graph TD
  0fe12bc8_3f79_14ac_8507_9d66459c6c14["registerEvents()"]
  f81462d0_b06e_fbf9_f1b8_93352f59d5eb["ScrollEndEventPlugin.js"]
  0fe12bc8_3f79_14ac_8507_9d66459c6c14 -->|defined in| f81462d0_b06e_fbf9_f1b8_93352f59d5eb
  db2a0ac3_1faf_8e02_55e8_f299ce8da5e9["registerTwoPhaseEvent()"]
  0fe12bc8_3f79_14ac_8507_9d66459c6c14 -->|calls| db2a0ac3_1faf_8e02_55e8_f299ce8da5e9
  style 0fe12bc8_3f79_14ac_8507_9d66459c6c14 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

packages/react-dom-bindings/src/events/plugins/ScrollEndEventPlugin.js lines 45–55

function registerEvents() {
  registerTwoPhaseEvent('onScrollEnd', [
    'scroll',
    'scrollend',
    'touchstart',
    'touchcancel',
    'touchend',
    'mousedown',
    'mouseup',
  ]);
}

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/ScrollEndEventPlugin.js.
Where is registerEvents() defined?
registerEvents() is defined in packages/react-dom-bindings/src/events/plugins/ScrollEndEventPlugin.js at line 45.
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