sequential-destructuring-both-mixed-local-and-scope-declaration.js — react Source File
Architecture documentation for sequential-destructuring-both-mixed-local-and-scope-declaration.js, a javascript file in the react codebase. 1 imports, 0 dependents.
Entity Profile
Dependency Diagram
graph LR f5fb7aa1_e048_e1cb_f824_a6d13e425a10["sequential-destructuring-both-mixed-local-and-scope-declaration.js"] 006eec3d_77a9_4a47_e6c1_a96d7a6c9c05["shared-runtime"] f5fb7aa1_e048_e1cb_f824_a6d13e425a10 --> 006eec3d_77a9_4a47_e6c1_a96d7a6c9c05 style f5fb7aa1_e048_e1cb_f824_a6d13e425a10 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
import {identity} from 'shared-runtime';
function Component(statusName) {
// status is local, text is a scope declaration
const {status, text} = foo(statusName);
// color is local, font is a scope declaration
const {color, font} = getStyles(status);
// bg is a declaration
const bg = identity(color);
return (
<div className={bg}>
<span className={font}>{[text]}</span>
</div>
);
}
function foo(name) {
return {
status: `<status>`,
text: `${name}!`,
};
}
function getStyles(status) {
return {
font: 'comic-sans',
color: '#657b83',
};
}
export const FIXTURE_ENTRYPOINT = {
fn: Component,
params: ['Sathya'],
};
Domain
Subdomains
Functions
Dependencies
- shared-runtime
Source
Frequently Asked Questions
What does sequential-destructuring-both-mixed-local-and-scope-declaration.js do?
sequential-destructuring-both-mixed-local-and-scope-declaration.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 sequential-destructuring-both-mixed-local-and-scope-declaration.js?
sequential-destructuring-both-mixed-local-and-scope-declaration.js defines 3 function(s): Component, foo, getStyles.
What does sequential-destructuring-both-mixed-local-and-scope-declaration.js depend on?
sequential-destructuring-both-mixed-local-and-scope-declaration.js imports 1 module(s): shared-runtime.
Where is sequential-destructuring-both-mixed-local-and-scope-declaration.js in the architecture?
sequential-destructuring-both-mixed-local-and-scope-declaration.js is located at compiler/packages/babel-plugin-react-compiler/src/__tests__/fixtures/compiler/sequential-destructuring-both-mixed-local-and-scope-declaration.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