Home / File/ return-ref-callback-structure.js — react Source File

return-ref-callback-structure.js — react Source File

Architecture documentation for return-ref-callback-structure.js, a javascript file in the react codebase. 1 imports, 0 dependents.

File javascript TestingUtilities Fixtures 1 imports 1 functions

Entity Profile

Dependency Diagram

graph LR
  3f79b0a4_8b43_547a_832e_6c798b91323d["return-ref-callback-structure.js"]
  ac587885_e294_a1e9_b13f_5e7b920fdb42["react"]
  3f79b0a4_8b43_547a_832e_6c798b91323d --> ac587885_e294_a1e9_b13f_5e7b920fdb42
  style 3f79b0a4_8b43_547a_832e_6c798b91323d fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

// @flow @validateRefAccessDuringRender @validatePreserveExistingMemoizationGuarantees

import {useRef} from 'react';

component Foo(cond: boolean, cond2: boolean) {
  const ref = useRef();

  const s = () => {
    return ref.current;
  };

  if (cond) return [s];
  else if (cond2) return {s};
  else return {s: [s]};
}

export const FIXTURE_ENTRYPOINT = {
  fn: Foo,
  params: [{cond: false, cond2: false}],
};

Subdomains

Functions

Dependencies

  • react

Frequently Asked Questions

What does return-ref-callback-structure.js do?
return-ref-callback-structure.js is a source file in the react codebase, written in javascript. It belongs to the TestingUtilities domain, Fixtures subdomain.
What functions are defined in return-ref-callback-structure.js?
return-ref-callback-structure.js defines 1 function(s): s.
What does return-ref-callback-structure.js depend on?
return-ref-callback-structure.js imports 1 module(s): react.
Where is return-ref-callback-structure.js in the architecture?
return-ref-callback-structure.js is located at compiler/packages/babel-plugin-react-compiler/src/__tests__/fixtures/compiler/return-ref-callback-structure.js (domain: TestingUtilities, subdomain: Fixtures, directory: compiler/packages/babel-plugin-react-compiler/src/__tests__/fixtures/compiler).

Analyze Your Own Codebase

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

Try Supermodel Free