Home / File/ return-object-of-functions.js — react Source File

return-object-of-functions.js — react Source File

Architecture documentation for return-object-of-functions.js, a javascript file in the react codebase.

Entity Profile

Relationship Graph

Source Code

/**
 * Assume that only directly returned functions or JSX attributes are invoked.
 * Conservatively estimate that functions wrapped in objects or other containers
 * might never be called (and therefore their property loads are not hoistable).
 */
function useMakeCallback({arr}) {
  return {
    getElement0: () => arr[0].value,
    getElement1: () => arr[1].value,
  };
}

export const FIXTURE_ENTRYPOINT = {
  fn: useMakeCallback,
  params: [{arr: [1, 2]}],
  sequentialRenders: [{arr: [1, 2]}, {arr: []}],
};

Subdomains

Functions

Frequently Asked Questions

What does return-object-of-functions.js do?
return-object-of-functions.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 return-object-of-functions.js?
return-object-of-functions.js defines 1 function(s): useMakeCallback.
Where is return-object-of-functions.js in the architecture?
return-object-of-functions.js is located at compiler/packages/babel-plugin-react-compiler/src/__tests__/fixtures/compiler/inner-function/nullable-objects/return-object-of-functions.js (domain: TestingUtilities, subdomain: Fixtures, directory: compiler/packages/babel-plugin-react-compiler/src/__tests__/fixtures/compiler/inner-function/nullable-objects).

Analyze Your Own Codebase

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

Try Supermodel Free