multiple-calls-to-hoisted-callback-from-other-callback.js — react Source File
Architecture documentation for multiple-calls-to-hoisted-callback-from-other-callback.js, a javascript file in the react codebase. 1 imports, 0 dependents.
Entity Profile
Dependency Diagram
graph LR ebf06576_427f_0b9b_1469_61d13c1ce50b["multiple-calls-to-hoisted-callback-from-other-callback.js"] ac587885_e294_a1e9_b13f_5e7b920fdb42["react"] ebf06576_427f_0b9b_1469_61d13c1ce50b --> ac587885_e294_a1e9_b13f_5e7b920fdb42 style ebf06576_427f_0b9b_1469_61d13c1ce50b fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
import {useState} from 'react';
function Component(props) {
const [_state, setState] = useState();
const a = () => {
return b();
};
const b = () => {
return (
<>
<div onClick={() => onClick(true)}>a</div>
<div onClick={() => onClick(false)}>b</div>
</>
);
};
const onClick = value => {
setState(value);
};
return <div>{a()}</div>;
}
export const FIXTURE_ENTRYPOINT = {
fn: Component,
params: [{}],
};
Domain
Subdomains
Functions
Dependencies
- react
Source
Frequently Asked Questions
What does multiple-calls-to-hoisted-callback-from-other-callback.js do?
multiple-calls-to-hoisted-callback-from-other-callback.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 multiple-calls-to-hoisted-callback-from-other-callback.js?
multiple-calls-to-hoisted-callback-from-other-callback.js defines 1 function(s): Component.
What does multiple-calls-to-hoisted-callback-from-other-callback.js depend on?
multiple-calls-to-hoisted-callback-from-other-callback.js imports 1 module(s): react.
Where is multiple-calls-to-hoisted-callback-from-other-callback.js in the architecture?
multiple-calls-to-hoisted-callback-from-other-callback.js is located at compiler/packages/babel-plugin-react-compiler/src/__tests__/fixtures/compiler/multiple-calls-to-hoisted-callback-from-other-callback.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