Home / Function/ setup() — react Function Reference

setup() — react Function Reference

Architecture documentation for the setup() function in backend.js from the react codebase.

Entity Profile

Dependency Diagram

graph TD
  76097b9e_0880_e67a_4ae2_281c83d2888e["setup()"]
  2a362e81_2400_54f3_7410_376f8ae7be77["backend.js"]
  76097b9e_0880_e67a_4ae2_281c83d2888e -->|defined in| 2a362e81_2400_54f3_7410_376f8ae7be77
  style 76097b9e_0880_e67a_4ae2_281c83d2888e fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

packages/react-devtools-extensions/src/backend.js lines 21–34

function setup(hook: ?DevToolsHook) {
  if (hook == null) {
    return;
  }

  hook.backends.set(COMPACT_VERSION_NAME, {
    Agent,
    Bridge,
    initBackend,
    setupNativeStyleEditor,
  });

  hook.emit('devtools-backend-installed', COMPACT_VERSION_NAME);
}

Domain

Subdomains

Frequently Asked Questions

What does setup() do?
setup() is a function in the react codebase, defined in packages/react-devtools-extensions/src/backend.js.
Where is setup() defined?
setup() is defined in packages/react-devtools-extensions/src/backend.js at line 21.

Analyze Your Own Codebase

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

Try Supermodel Free