Home / File/ error.todo-missing-source-locations.js — react Source File

error.todo-missing-source-locations.js — react Source File

Architecture documentation for error.todo-missing-source-locations.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
  21185d70_5617_59e9_5d4c_e8e4a33c3ddb["error.todo-missing-source-locations.js"]
  ac587885_e294_a1e9_b13f_5e7b920fdb42["react"]
  21185d70_5617_59e9_5d4c_e8e4a33c3ddb --> ac587885_e294_a1e9_b13f_5e7b920fdb42
  style 21185d70_5617_59e9_5d4c_e8e4a33c3ddb fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

// @validateSourceLocations
import {useEffect, useCallback} from 'react';

function Component({prop1, prop2}) {
  const x = prop1 + prop2;
  const y = x * 2;
  const arr = [x, y];
  const obj = {x, y};
  let destA, destB;
  if (y > 5) {
    [destA, destB] = arr;
  }

  const [a, b] = arr;
  const {x: c, y: d} = obj;
  let sound;

  if (y > 10) {
    sound = 'woof';
  } else {
    sound = 'meow';
  }

  useEffect(() => {
    if (a > 10) {
      console.log(a);
      console.log(sound);
      console.log(destA, destB);
    }
  }, [a, sound, destA, destB]);

  const foo = useCallback(() => {
    return a + b;
  }, [a, b]);

  function bar() {
    return (c + d) * 2;
  }

  console.log('Hello, world!');

  return [y, foo, bar];
}

Subdomains

Functions

Dependencies

  • react

Frequently Asked Questions

What does error.todo-missing-source-locations.js do?
error.todo-missing-source-locations.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 error.todo-missing-source-locations.js?
error.todo-missing-source-locations.js defines 1 function(s): Component.
What does error.todo-missing-source-locations.js depend on?
error.todo-missing-source-locations.js imports 1 module(s): react.
Where is error.todo-missing-source-locations.js in the architecture?
error.todo-missing-source-locations.js is located at compiler/packages/babel-plugin-react-compiler/src/__tests__/fixtures/compiler/error.todo-missing-source-locations.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