Home / File/ ref-current-not-added-to-dep-2.js — react Source File

ref-current-not-added-to-dep-2.js — react Source File

Architecture documentation for ref-current-not-added-to-dep-2.js, a javascript file in the react codebase.

Entity Profile

Relationship Graph

Source Code

// @validateRefAccessDuringRender:false
function Foo({a}) {
  const ref = useRef();
  const x = {a, val: ref.current};

  return <VideoList videos={x} />;
}

Subdomains

Functions

Frequently Asked Questions

What does ref-current-not-added-to-dep-2.js do?
ref-current-not-added-to-dep-2.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 ref-current-not-added-to-dep-2.js?
ref-current-not-added-to-dep-2.js defines 1 function(s): Foo.
Where is ref-current-not-added-to-dep-2.js in the architecture?
ref-current-not-added-to-dep-2.js is located at compiler/packages/babel-plugin-react-compiler/src/__tests__/fixtures/compiler/ref-current-not-added-to-dep-2.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