allow-mutating-ref-in-callback-passed-to-jsx.tsx — react Source File
Architecture documentation for allow-mutating-ref-in-callback-passed-to-jsx.tsx, a tsx file in the react codebase. 1 imports, 0 dependents.
Entity Profile
Dependency Diagram
graph LR a56d9a6a_fa18_4a91_8b5a_f0b1ef42e104["allow-mutating-ref-in-callback-passed-to-jsx.tsx"] ac587885_e294_a1e9_b13f_5e7b920fdb42["react"] a56d9a6a_fa18_4a91_8b5a_f0b1ef42e104 --> ac587885_e294_a1e9_b13f_5e7b920fdb42 style a56d9a6a_fa18_4a91_8b5a_f0b1ef42e104 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
// @validateRefAccessDuringRender
import {useRef} from 'react';
function Component() {
const ref = useRef(null);
const onClick = () => {
if (ref.current !== null) {
ref.current = '';
}
};
return (
<>
<input ref={ref} />
<button onClick={onClick} />
</>
);
}
export const FIXTURE_ENTRYPOINT = {
fn: Component,
params: [{}],
};
Domain
Subdomains
Functions
Dependencies
- react
Source
Frequently Asked Questions
What does allow-mutating-ref-in-callback-passed-to-jsx.tsx do?
allow-mutating-ref-in-callback-passed-to-jsx.tsx is a source file in the react codebase, written in tsx. It belongs to the TestingUtilities domain, Fixtures subdomain.
What functions are defined in allow-mutating-ref-in-callback-passed-to-jsx.tsx?
allow-mutating-ref-in-callback-passed-to-jsx.tsx defines 1 function(s): Component.
What does allow-mutating-ref-in-callback-passed-to-jsx.tsx depend on?
allow-mutating-ref-in-callback-passed-to-jsx.tsx imports 1 module(s): react.
Where is allow-mutating-ref-in-callback-passed-to-jsx.tsx in the architecture?
allow-mutating-ref-in-callback-passed-to-jsx.tsx is located at compiler/packages/babel-plugin-react-compiler/src/__tests__/fixtures/compiler/allow-mutating-ref-in-callback-passed-to-jsx.tsx (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