Home / File/ ComponentWithMultipleHooksPerLine.js — react Source File

ComponentWithMultipleHooksPerLine.js — react Source File

Architecture documentation for ComponentWithMultipleHooksPerLine.js, a javascript file in the react codebase. 1 imports, 0 dependents.

File javascript BabelCompiler Validation 1 imports 1 functions

Entity Profile

Dependency Diagram

graph LR
  eb9c39ca_c45e_057d_5f1c_c8c7d212bde8["ComponentWithMultipleHooksPerLine.js"]
  ac587885_e294_a1e9_b13f_5e7b920fdb42["react"]
  eb9c39ca_c45e_057d_5f1c_c8c7d212bde8 --> ac587885_e294_a1e9_b13f_5e7b920fdb42
  style eb9c39ca_c45e_057d_5f1c_c8c7d212bde8 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

/**
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 *
 * @flow
 */

import {createContext, useContext} from 'react';

const A = createContext(1);
const B = createContext(2);

export function Component() {
  const a = useContext(A);
  const b = useContext(B);

  // prettier-ignore
  const c = useContext(A), d = useContext(B); // eslint-disable-line one-var

  return a + b + c + d;
}

Domain

Subdomains

Functions

Dependencies

  • react

Frequently Asked Questions

What does ComponentWithMultipleHooksPerLine.js do?
ComponentWithMultipleHooksPerLine.js is a source file in the react codebase, written in javascript. It belongs to the BabelCompiler domain, Validation subdomain.
What functions are defined in ComponentWithMultipleHooksPerLine.js?
ComponentWithMultipleHooksPerLine.js defines 1 function(s): Component.
What does ComponentWithMultipleHooksPerLine.js depend on?
ComponentWithMultipleHooksPerLine.js imports 1 module(s): react.
Where is ComponentWithMultipleHooksPerLine.js in the architecture?
ComponentWithMultipleHooksPerLine.js is located at packages/react-devtools-shared/src/hooks/__tests__/__source__/ComponentWithMultipleHooksPerLine.js (domain: BabelCompiler, subdomain: Validation, directory: packages/react-devtools-shared/src/hooks/__tests__/__source__).

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free