reactive-dependency-object-captured-with-reactive-mutated.js — react Source File
Architecture documentation for reactive-dependency-object-captured-with-reactive-mutated.js, a javascript file in the react codebase.
Entity Profile
Relationship Graph
Source Code
const {mutate} = require('shared-runtime');
function Component(props) {
const x = {};
const y = props.y;
const z = [x, y];
mutate(z);
// x's object identity can change bc it co-mutates with z, which is reactive via props.y
return [x];
}
export const FIXTURE_ENTRYPOINT = {
fn: Component,
params: [{y: 42}],
};
Domain
Subdomains
Functions
Source
Frequently Asked Questions
What does reactive-dependency-object-captured-with-reactive-mutated.js do?
reactive-dependency-object-captured-with-reactive-mutated.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 reactive-dependency-object-captured-with-reactive-mutated.js?
reactive-dependency-object-captured-with-reactive-mutated.js defines 1 function(s): Component.
Where is reactive-dependency-object-captured-with-reactive-mutated.js in the architecture?
reactive-dependency-object-captured-with-reactive-mutated.js is located at compiler/packages/babel-plugin-react-compiler/src/__tests__/fixtures/compiler/reactive-dependency-object-captured-with-reactive-mutated.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