Home / Function/ lowerEventPriority() — react Function Reference

lowerEventPriority() — react Function Reference

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

Entity Profile

Dependency Diagram

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

Relationship Graph

Source Code

packages/react-reconciler/src/ReactEventPriorities.js lines 37–42

export function lowerEventPriority(
  a: EventPriority,
  b: EventPriority,
): EventPriority {
  return a === 0 || a > b ? a : b;
}

Domain

Subdomains

Frequently Asked Questions

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

Analyze Your Own Codebase

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

Try Supermodel Free