repro-local-mutation-of-new-object-from-destructured-prop.js — react Source File
Architecture documentation for repro-local-mutation-of-new-object-from-destructured-prop.js, a javascript file in the react codebase. 1 imports, 0 dependents.
Entity Profile
Dependency Diagram
graph LR 81c4abc2_17ea_ffd9_15ed_eab8003bec54["repro-local-mutation-of-new-object-from-destructured-prop.js"] 006eec3d_77a9_4a47_e6c1_a96d7a6c9c05["shared-runtime"] 81c4abc2_17ea_ffd9_15ed_eab8003bec54 --> 006eec3d_77a9_4a47_e6c1_a96d7a6c9c05 style 81c4abc2_17ea_ffd9_15ed_eab8003bec54 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
import {Stringify} from 'shared-runtime';
function Component(props) {
const {a} = props;
const {b, ...rest} = a;
// Local mutation of `rest` is allowed since it is a newly allocated object
rest.value = props.value;
return <Stringify rest={rest} />;
}
export const FIXTURE_ENTRYPOINT = {
fn: Component,
params: [{a: {b: 0, other: 'other'}, value: 42}],
};
Domain
Subdomains
Functions
Dependencies
- shared-runtime
Source
Frequently Asked Questions
What does repro-local-mutation-of-new-object-from-destructured-prop.js do?
repro-local-mutation-of-new-object-from-destructured-prop.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 repro-local-mutation-of-new-object-from-destructured-prop.js?
repro-local-mutation-of-new-object-from-destructured-prop.js defines 1 function(s): Component.
What does repro-local-mutation-of-new-object-from-destructured-prop.js depend on?
repro-local-mutation-of-new-object-from-destructured-prop.js imports 1 module(s): shared-runtime.
Where is repro-local-mutation-of-new-object-from-destructured-prop.js in the architecture?
repro-local-mutation-of-new-object-from-destructured-prop.js is located at compiler/packages/babel-plugin-react-compiler/src/__tests__/fixtures/compiler/repro-local-mutation-of-new-object-from-destructured-prop.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