use-operator-method-call.js — react Source File
Architecture documentation for use-operator-method-call.js, a javascript file in the react codebase. 2 imports, 0 dependents.
Entity Profile
Dependency Diagram
graph LR 74bbb9f5_5581_5dfd_29d6_a654d12bed59["use-operator-method-call.js"] 006eec3d_77a9_4a47_e6c1_a96d7a6c9c05["shared-runtime"] 74bbb9f5_5581_5dfd_29d6_a654d12bed59 --> 006eec3d_77a9_4a47_e6c1_a96d7a6c9c05 ac587885_e294_a1e9_b13f_5e7b920fdb42["react"] 74bbb9f5_5581_5dfd_29d6_a654d12bed59 --> ac587885_e294_a1e9_b13f_5e7b920fdb42 style 74bbb9f5_5581_5dfd_29d6_a654d12bed59 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
import {ValidateMemoization} from 'shared-runtime';
import {useMemo} from 'react';
import * as React from 'react';
const FooContext = React.createContext(null);
function Component(props) {
return (
<FooContext.Provider value={props.value}>
<Inner />
</FooContext.Provider>
);
}
function Inner(props) {
const input = React.use(FooContext);
const output = useMemo(() => [input], [input]);
return <ValidateMemoization inputs={[input]} output={output} />;
}
export const FIXTURE_ENTRYPOINT = {
fn: Component,
params: [{value: 42}],
sequentialRenders: [
{value: null},
{value: 42},
{value: 42},
{value: null},
{value: null},
{value: 42},
{value: null},
{value: 42},
{value: null},
],
};
Domain
Subdomains
Functions
Dependencies
- react
- shared-runtime
Source
Frequently Asked Questions
What does use-operator-method-call.js do?
use-operator-method-call.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 use-operator-method-call.js?
use-operator-method-call.js defines 2 function(s): Component, Inner.
What does use-operator-method-call.js depend on?
use-operator-method-call.js imports 2 module(s): react, shared-runtime.
Where is use-operator-method-call.js in the architecture?
use-operator-method-call.js is located at compiler/packages/babel-plugin-react-compiler/src/__tests__/fixtures/compiler/use-operator-method-call.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