Home / Function/ print() — react Function Reference

print() — react Function Reference

Architecture documentation for the print() function in hookSerializer.js from the react codebase.

Entity Profile

Dependency Diagram

graph TD
  009195ec_1136_87f3_666c_648b11f8de6f["print()"]
  e2252a4e_d1c2_c24c_476b_66f81e018367["hookSerializer.js"]
  009195ec_1136_87f3_666c_648b11f8de6f -->|defined in| e2252a4e_d1c2_c24c_476b_66f81e018367
  2c822004_48b4_a40e_3a8e_3ebc7aa5f69e["serializeHook()"]
  009195ec_1136_87f3_666c_648b11f8de6f -->|calls| 2c822004_48b4_a40e_3a8e_3ebc7aa5f69e
  style 009195ec_1136_87f3_666c_648b11f8de6f fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

packages/react-devtools-shared/src/__tests__/__serializers__/hookSerializer.js lines 57–60

export function print(hook, serialize, indent) {
  // Don't stringify this object; that would break nested serializers.
  return serialize(serializeHook(hook));
}

Domain

Subdomains

Frequently Asked Questions

What does print() do?
print() is a function in the react codebase, defined in packages/react-devtools-shared/src/__tests__/__serializers__/hookSerializer.js.
Where is print() defined?
print() is defined in packages/react-devtools-shared/src/__tests__/__serializers__/hookSerializer.js at line 57.
What does print() call?
print() calls 1 function(s): serializeHook.

Analyze Your Own Codebase

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

Try Supermodel Free