Home / Function/ useConditionalSubpath1() — react Function Reference

useConditionalSubpath1() — react Function Reference

Architecture documentation for the useConditionalSubpath1() function in subpath-order1.js from the react codebase.

Entity Profile

Dependency Diagram

graph TD
  ee5869b7_a9f4_fb31_253d_f0747ffd0c44["useConditionalSubpath1()"]
  aff414c3_e8f5_1be6_0961_40f67310a71d["subpath-order1.js"]
  ee5869b7_a9f4_fb31_253d_f0747ffd0c44 -->|defined in| aff414c3_e8f5_1be6_0961_40f67310a71d
  style ee5869b7_a9f4_fb31_253d_f0747ffd0c44 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

compiler/packages/babel-plugin-react-compiler/src/__tests__/fixtures/compiler/reduce-reactive-deps/subpath-order1.js lines 9–16

function useConditionalSubpath1(props, cond) {
  const x = {};
  x.b = props.a.b;
  if (identity(cond)) {
    x.a = props.a;
  }
  return x;
}

Subdomains

Frequently Asked Questions

What does useConditionalSubpath1() do?
useConditionalSubpath1() is a function in the react codebase, defined in compiler/packages/babel-plugin-react-compiler/src/__tests__/fixtures/compiler/reduce-reactive-deps/subpath-order1.js.
Where is useConditionalSubpath1() defined?
useConditionalSubpath1() is defined in compiler/packages/babel-plugin-react-compiler/src/__tests__/fixtures/compiler/reduce-reactive-deps/subpath-order1.js at line 9.

Analyze Your Own Codebase

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

Try Supermodel Free