Home / File/ use-no-forget-with-eslint-suppression.js — react Source File

use-no-forget-with-eslint-suppression.js — react Source File

Architecture documentation for use-no-forget-with-eslint-suppression.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
  2e265fea_a08c_eafa_b6d2_7202b028bfa1["use-no-forget-with-eslint-suppression.js"]
  ac587885_e294_a1e9_b13f_5e7b920fdb42["react"]
  2e265fea_a08c_eafa_b6d2_7202b028bfa1 --> ac587885_e294_a1e9_b13f_5e7b920fdb42
  style 2e265fea_a08c_eafa_b6d2_7202b028bfa1 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

import {useRef} from 'react';

function Component() {
  'use no forget';
  const ref = useRef(null);
  // eslint-disable-next-line react-hooks/rules-of-hooks
  ref.current = 'bad';
  return <button ref={ref} />;
}

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

Subdomains

Functions

Dependencies

  • react

Frequently Asked Questions

What does use-no-forget-with-eslint-suppression.js do?
use-no-forget-with-eslint-suppression.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 use-no-forget-with-eslint-suppression.js?
use-no-forget-with-eslint-suppression.js defines 1 function(s): Component.
What does use-no-forget-with-eslint-suppression.js depend on?
use-no-forget-with-eslint-suppression.js imports 1 module(s): react.
Where is use-no-forget-with-eslint-suppression.js in the architecture?
use-no-forget-with-eslint-suppression.js is located at compiler/packages/babel-plugin-react-compiler/src/__tests__/fixtures/compiler/use-no-forget-with-eslint-suppression.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