jsx-function.tsx — react Source File
Architecture documentation for jsx-function.tsx, a tsx file in the react codebase. 1 imports, 0 dependents.
Entity Profile
Dependency Diagram
graph LR feabee11_9561_f047_9814_e690ab4c1334["jsx-function.tsx"] 006eec3d_77a9_4a47_e6c1_a96d7a6c9c05["shared-runtime"] feabee11_9561_f047_9814_e690ab4c1334 --> 006eec3d_77a9_4a47_e6c1_a96d7a6c9c05 style feabee11_9561_f047_9814_e690ab4c1334 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
// @flow
import {Stringify} from 'shared-runtime';
/**
* Assume that functions captured directly as jsx attributes are invoked and
* that their property loads are hoistable.
*/
function useMakeCallback({
obj,
setState,
}: {
obj: {value: number};
setState: (newState: number) => void;
}) {
return <Stringify cb={() => setState(obj.value)} shouldInvokeFns={true} />;
}
const setState = (arg: number) => {
'use no memo';
return arg;
};
export const FIXTURE_ENTRYPOINT = {
fn: useMakeCallback,
params: [{obj: {value: 1}, setState}],
sequentialRenders: [
{obj: {value: 1}, setState},
{obj: {value: 2}, setState},
],
};
Domain
Subdomains
Functions
Dependencies
- shared-runtime
Source
Frequently Asked Questions
What does jsx-function.tsx do?
jsx-function.tsx is a source file in the react codebase, written in tsx. It belongs to the TestingUtilities domain, Fixtures subdomain.
What functions are defined in jsx-function.tsx?
jsx-function.tsx defines 2 function(s): setState, useMakeCallback.
What does jsx-function.tsx depend on?
jsx-function.tsx imports 1 module(s): shared-runtime.
Where is jsx-function.tsx in the architecture?
jsx-function.tsx is located at compiler/packages/babel-plugin-react-compiler/src/__tests__/fixtures/compiler/inner-function/nullable-objects/assume-invoked/jsx-function.tsx (domain: TestingUtilities, subdomain: Fixtures, directory: compiler/packages/babel-plugin-react-compiler/src/__tests__/fixtures/compiler/inner-function/nullable-objects/assume-invoked).
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free