Home / File/ mege-consecutive-scopes-dont-merge-with-different-deps.js — react Source File

mege-consecutive-scopes-dont-merge-with-different-deps.js — react Source File

Architecture documentation for mege-consecutive-scopes-dont-merge-with-different-deps.js, a javascript file in the react codebase.

Entity Profile

Relationship Graph

Source Code

const {getNumber, identity} = require('shared-runtime');

function Component(props) {
  // Two scopes: one for `getNumber()`, one for the object literal.
  // Neither has dependencies so they should merge
  return {a: getNumber(), b: identity(props.id), c: ['static']};
}

export const FIXTURE_ENTRYPOINT = {
  fn: Component,
  params: [{id: 42}],
};

Subdomains

Functions

Frequently Asked Questions

What does mege-consecutive-scopes-dont-merge-with-different-deps.js do?
mege-consecutive-scopes-dont-merge-with-different-deps.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 mege-consecutive-scopes-dont-merge-with-different-deps.js?
mege-consecutive-scopes-dont-merge-with-different-deps.js defines 1 function(s): Component.
Where is mege-consecutive-scopes-dont-merge-with-different-deps.js in the architecture?
mege-consecutive-scopes-dont-merge-with-different-deps.js is located at compiler/packages/babel-plugin-react-compiler/src/__tests__/fixtures/compiler/mege-consecutive-scopes-dont-merge-with-different-deps.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