hasViewTransition() — react Function Reference
Architecture documentation for the hasViewTransition() function in ReactDOMComponent.js from the react codebase.
Entity Profile
Dependency Diagram
graph TD 83fdc497_4f89_f2d6_1bd7_d810070e07dd["hasViewTransition()"] 1e990658_7cea_75be_1f24_2399bdf9f15b["ReactDOMComponent.js"] 83fdc497_4f89_f2d6_1bd7_d810070e07dd -->|defined in| 1e990658_7cea_75be_1f24_2399bdf9f15b f4f229a8_f7a0_02d6_4675_de4c6a758e99["isExpectedViewTransitionName()"] f4f229a8_f7a0_02d6_4675_de4c6a758e99 -->|calls| 83fdc497_4f89_f2d6_1bd7_d810070e07dd 67b4072c_3549_0182_2962_827546c9b302["diffHydratedStyles()"] 67b4072c_3549_0182_2962_827546c9b302 -->|calls| 83fdc497_4f89_f2d6_1bd7_d810070e07dd style 83fdc497_4f89_f2d6_1bd7_d810070e07dd fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
packages/react-dom-bindings/src/client/ReactDOMComponent.js lines 238–245
function hasViewTransition(htmlElement: HTMLElement): boolean {
return !!(
htmlElement.getAttribute('vt-share') ||
htmlElement.getAttribute('vt-exit') ||
htmlElement.getAttribute('vt-enter') ||
htmlElement.getAttribute('vt-update')
);
}
Domain
Subdomains
Source
Frequently Asked Questions
What does hasViewTransition() do?
hasViewTransition() is a function in the react codebase, defined in packages/react-dom-bindings/src/client/ReactDOMComponent.js.
Where is hasViewTransition() defined?
hasViewTransition() is defined in packages/react-dom-bindings/src/client/ReactDOMComponent.js at line 238.
What calls hasViewTransition()?
hasViewTransition() is called by 2 function(s): diffHydratedStyles, isExpectedViewTransitionName.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free