function-expression-captures-value-later-frozen-jsx.js — react Source File
Architecture documentation for function-expression-captures-value-later-frozen-jsx.js, a javascript file in the react codebase.
Entity Profile
Relationship Graph
Source Code
function Component(props) {
let x = {};
// onChange should be inferred as immutable, because the value
// it captures (`x`) is frozen by the time the function is referenced
const onChange = e => {
maybeMutate(x, e.target.value);
};
if (props.cond) {
<div>{x}</div>;
}
return <Foo value={x} onChange={onChange} />;
}
Domain
Subdomains
Functions
Source
Frequently Asked Questions
What does function-expression-captures-value-later-frozen-jsx.js do?
function-expression-captures-value-later-frozen-jsx.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 function-expression-captures-value-later-frozen-jsx.js?
function-expression-captures-value-later-frozen-jsx.js defines 1 function(s): Component.
Where is function-expression-captures-value-later-frozen-jsx.js in the architecture?
function-expression-captures-value-later-frozen-jsx.js is located at compiler/packages/babel-plugin-react-compiler/src/__tests__/fixtures/compiler/function-expression-captures-value-later-frozen-jsx.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