Home / File/ merge-consecutive-scopes-deps-subset-of-decls.js — react Source File

merge-consecutive-scopes-deps-subset-of-decls.js — react Source File

Architecture documentation for merge-consecutive-scopes-deps-subset-of-decls.js, a javascript file in the react codebase. 1 imports, 0 dependents.

File javascript TestingUtilities Fixtures 1 imports 1 functions

Entity Profile

Dependency Diagram

graph LR
  5de197dc_24a0_bde4_aae2_ce24c27657d9["merge-consecutive-scopes-deps-subset-of-decls.js"]
  ac587885_e294_a1e9_b13f_5e7b920fdb42["react"]
  5de197dc_24a0_bde4_aae2_ce24c27657d9 --> ac587885_e294_a1e9_b13f_5e7b920fdb42
  style 5de197dc_24a0_bde4_aae2_ce24c27657d9 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

import {useState} from 'react';

function Component() {
  const [count, setCount] = useState(0);
  return (
    <div>
      <button onClick={() => setCount(count - 1)}>Decrement</button>
      {/**
       * The scope for the <button> depends on just the scope for the callback,
       * but the previous scope (after merging) will declare both the above
       * <button> and the callback.
       */}
      <button onClick={() => setCount(count + 1)}>Increment</button>
    </div>
  );
}

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

Subdomains

Functions

Dependencies

  • react

Frequently Asked Questions

What does merge-consecutive-scopes-deps-subset-of-decls.js do?
merge-consecutive-scopes-deps-subset-of-decls.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 merge-consecutive-scopes-deps-subset-of-decls.js?
merge-consecutive-scopes-deps-subset-of-decls.js defines 1 function(s): Component.
What does merge-consecutive-scopes-deps-subset-of-decls.js depend on?
merge-consecutive-scopes-deps-subset-of-decls.js imports 1 module(s): react.
Where is merge-consecutive-scopes-deps-subset-of-decls.js in the architecture?
merge-consecutive-scopes-deps-subset-of-decls.js is located at compiler/packages/babel-plugin-react-compiler/src/__tests__/fixtures/compiler/merge-consecutive-scopes-deps-subset-of-decls.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