Home / Function/ higherEventPriority() — react Function Reference

higherEventPriority() — react Function Reference

Architecture documentation for the higherEventPriority() function in ReactEventPriorities.js from the react codebase.

Entity Profile

Dependency Diagram

graph TD
  b87efe04_e02e_4aa0_781a_c6e18f5fdf1b["higherEventPriority()"]
  e317bb22_8bd8_c9e1_6256_a7d1cb4eaee3["ReactEventPriorities.js"]
  b87efe04_e02e_4aa0_781a_c6e18f5fdf1b -->|defined in| e317bb22_8bd8_c9e1_6256_a7d1cb4eaee3
  style b87efe04_e02e_4aa0_781a_c6e18f5fdf1b fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

packages/react-reconciler/src/ReactEventPriorities.js lines 30–35

export function higherEventPriority(
  a: EventPriority,
  b: EventPriority,
): EventPriority {
  return a !== 0 && a < b ? a : b;
}

Domain

Subdomains

Frequently Asked Questions

What does higherEventPriority() do?
higherEventPriority() is a function in the react codebase, defined in packages/react-reconciler/src/ReactEventPriorities.js.
Where is higherEventPriority() defined?
higherEventPriority() is defined in packages/react-reconciler/src/ReactEventPriorities.js at line 30.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free