print() — react Function Reference
Architecture documentation for the print() function in inspectedElementSerializer.js from the react codebase.
Entity Profile
Dependency Diagram
graph TD f37f5b1c_13dd_7c15_7cef_89b7ccab1a76["print()"] e41f1fb9_fcd3_cdbd_40ba_46013e58783d["inspectedElementSerializer.js"] f37f5b1c_13dd_7c15_7cef_89b7ccab1a76 -->|defined in| e41f1fb9_fcd3_cdbd_40ba_46013e58783d style f37f5b1c_13dd_7c15_7cef_89b7ccab1a76 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
packages/react-devtools-shared/src/__tests__/__serializers__/inspectedElementSerializer.js lines 23–35
export function print(inspectedElement, serialize, indent) {
// Don't stringify this object; that would break nested serializers.
return serialize({
context: inspectedElement.context,
events: inspectedElement.events,
hooks: inspectedElement.hooks,
id: inspectedElement.id,
owners: inspectedElement.owners,
props: inspectedElement.props,
rootType: inspectedElement.rootType,
state: inspectedElement.state,
});
}
Domain
Subdomains
Defined In
Source
Frequently Asked Questions
What does print() do?
print() is a function in the react codebase, defined in packages/react-devtools-shared/src/__tests__/__serializers__/inspectedElementSerializer.js.
Where is print() defined?
print() is defined in packages/react-devtools-shared/src/__tests__/__serializers__/inspectedElementSerializer.js at line 23.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free