capitalized-function-allowlist.js — react Source File
Architecture documentation for capitalized-function-allowlist.js, a javascript file in the react codebase. 1 imports, 0 dependents.
Entity Profile
Dependency Diagram
graph LR 5f9693e0_a1ee_f994_18dc_53d419fab378["capitalized-function-allowlist.js"] ac587885_e294_a1e9_b13f_5e7b920fdb42["react"] 5f9693e0_a1ee_f994_18dc_53d419fab378 --> ac587885_e294_a1e9_b13f_5e7b920fdb42 style 5f9693e0_a1ee_f994_18dc_53d419fab378 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
// @validateNoCapitalizedCalls @hookPattern:".*\b(use[^$]+)$"
import * as React from 'react';
const React$useState = React.useState;
const THIS_IS_A_CONSTANT = () => {};
function Component() {
const b = Boolean(true); // OK
const n = Number(3); // OK
const s = String('foo'); // OK
const [state, setState] = React$useState(0); // OK
const [state2, setState2] = React.useState(1); // OK
const constant = THIS_IS_A_CONSTANT(); // OK
return 3;
}
export const FIXTURE_ENTRYPOINT = {
fn: Component,
params: [],
isComponent: true,
};
Domain
Subdomains
Functions
Dependencies
- react
Source
Frequently Asked Questions
What does capitalized-function-allowlist.js do?
capitalized-function-allowlist.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 capitalized-function-allowlist.js?
capitalized-function-allowlist.js defines 2 function(s): Component, THIS_IS_A_CONSTANT.
What does capitalized-function-allowlist.js depend on?
capitalized-function-allowlist.js imports 1 module(s): react.
Where is capitalized-function-allowlist.js in the architecture?
capitalized-function-allowlist.js is located at compiler/packages/babel-plugin-react-compiler/src/__tests__/fixtures/compiler/capitalized-function-allowlist.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