allow-reassignment-to-global-function-jsx-prop.js — react Source File
Architecture documentation for allow-reassignment-to-global-function-jsx-prop.js, a javascript file in the react codebase.
Entity Profile
Relationship Graph
Source Code
function Component() {
const onClick = () => {
// Cannot assign to globals
someUnknownGlobal = true;
moduleLocal = true;
};
// It's possible that this could be an event handler / effect function,
// but we don't know that and optimistically assume it will only be
// called by an event handler or effect, where it is allowed to modify globals
return <div onClick={onClick} />;
}
export const FIXTURE_ENTRYPOINT = {
fn: Component,
params: [{}],
};
Domain
Subdomains
Functions
Source
Frequently Asked Questions
What does allow-reassignment-to-global-function-jsx-prop.js do?
allow-reassignment-to-global-function-jsx-prop.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 allow-reassignment-to-global-function-jsx-prop.js?
allow-reassignment-to-global-function-jsx-prop.js defines 1 function(s): Component.
Where is allow-reassignment-to-global-function-jsx-prop.js in the architecture?
allow-reassignment-to-global-function-jsx-prop.js is located at compiler/packages/babel-plugin-react-compiler/src/__tests__/fixtures/compiler/allow-reassignment-to-global-function-jsx-prop.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