Example() — react Function Reference
Architecture documentation for the Example() function in repro-mutate-result-of-method-call-on-frozen-value-in-function-expression.js from the react codebase.
Entity Profile
Dependency Diagram
graph TD 3e9c15da_6c00_4f0d_c129_12b1d5569e7c["Example()"] 057282ea_2989_4025_b4cf_be1439c71894["repro-mutate-result-of-method-call-on-frozen-value-in-function-expression.js"] 3e9c15da_6c00_4f0d_c129_12b1d5569e7c -->|defined in| 057282ea_2989_4025_b4cf_be1439c71894 style 3e9c15da_6c00_4f0d_c129_12b1d5569e7c fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
compiler/packages/babel-plugin-react-compiler/src/__tests__/fixtures/compiler/repro-mutate-result-of-method-call-on-frozen-value-in-function-expression.js lines 3–13
function Example(props) {
const object = props.object;
const f = () => {
// The receiver maybe-aliases into the return
const obj = object.makeObject();
obj.property = props.value;
return obj;
};
const obj = f();
return <Stringify obj={obj} />;
}
Domain
Subdomains
Source
Frequently Asked Questions
What does Example() do?
Example() is a function in the react codebase, defined in compiler/packages/babel-plugin-react-compiler/src/__tests__/fixtures/compiler/repro-mutate-result-of-method-call-on-frozen-value-in-function-expression.js.
Where is Example() defined?
Example() is defined in compiler/packages/babel-plugin-react-compiler/src/__tests__/fixtures/compiler/repro-mutate-result-of-method-call-on-frozen-value-in-function-expression.js at line 3.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free