Home / Function/ setBrowserSelectionFromReact() — react Function Reference

setBrowserSelectionFromReact() — react Function Reference

Architecture documentation for the setBrowserSelectionFromReact() function in elementSelection.js from the react codebase.

Entity Profile

Dependency Diagram

graph TD
  3dfc058d_8164_9e8d_3695_2c7597cadc27["setBrowserSelectionFromReact()"]
  4f973625_4ea3_727f_a21d_315a6a251079["elementSelection.js"]
  3dfc058d_8164_9e8d_3695_2c7597cadc27 -->|defined in| 4f973625_4ea3_727f_a21d_315a6a251079
  style 3dfc058d_8164_9e8d_3695_2c7597cadc27 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

packages/react-devtools-extensions/src/main/elementSelection.js lines 3–16

export function setBrowserSelectionFromReact() {
  // This is currently only called on demand when you press "view DOM".
  // In the future, if Chrome adds an inspect() that doesn't switch tabs,
  // we could make this happen automatically when you select another component.
  evalInInspectedWindow(
    'setBrowserSelectionFromReact',
    [],
    (didSelectionChange, evalError) => {
      if (evalError) {
        console.error(evalError);
      }
    },
  );
}

Domain

Subdomains

Frequently Asked Questions

What does setBrowserSelectionFromReact() do?
setBrowserSelectionFromReact() is a function in the react codebase, defined in packages/react-devtools-extensions/src/main/elementSelection.js.
Where is setBrowserSelectionFromReact() defined?
setBrowserSelectionFromReact() is defined in packages/react-devtools-extensions/src/main/elementSelection.js at line 3.

Analyze Your Own Codebase

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

Try Supermodel Free