hooks-with-prefix.js — react Source File
Architecture documentation for hooks-with-prefix.js, a javascript file in the react codebase. 2 imports, 0 dependents.
Entity Profile
Dependency Diagram
graph LR 6f43e716_f4c5_0dc7_a978_95f5b0f2a0a6["hooks-with-prefix.js"] ac587885_e294_a1e9_b13f_5e7b920fdb42["react"] 6f43e716_f4c5_0dc7_a978_95f5b0f2a0a6 --> ac587885_e294_a1e9_b13f_5e7b920fdb42 006eec3d_77a9_4a47_e6c1_a96d7a6c9c05["shared-runtime"] 6f43e716_f4c5_0dc7_a978_95f5b0f2a0a6 --> 006eec3d_77a9_4a47_e6c1_a96d7a6c9c05 style 6f43e716_f4c5_0dc7_a978_95f5b0f2a0a6 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
// @hookPattern:".*\b(use[^$]+)$" @enablePreserveExistingMemoizationGuarantees:false
import * as React from 'react';
import {makeArray, useHook} from 'shared-runtime';
const React$useState = React.useState;
const React$useMemo = React.useMemo;
const Internal$Reassigned$useHook = useHook;
function Component() {
const [state, setState] = React$useState(0);
const object = Internal$Reassigned$useHook();
const json = JSON.stringify(object);
const doubledArray = React$useMemo(() => {
return makeArray(state);
}, [state]);
return (
<div>
{doubledArray.join('')}
{json}
</div>
);
}
export const FIXTURE_ENTRYPOINT = {
fn: Component,
params: [{}],
};
Domain
Subdomains
Functions
Dependencies
- react
- shared-runtime
Source
Frequently Asked Questions
What does hooks-with-prefix.js do?
hooks-with-prefix.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 hooks-with-prefix.js?
hooks-with-prefix.js defines 1 function(s): Component.
What does hooks-with-prefix.js depend on?
hooks-with-prefix.js imports 2 module(s): react, shared-runtime.
Where is hooks-with-prefix.js in the architecture?
hooks-with-prefix.js is located at compiler/packages/babel-plugin-react-compiler/src/__tests__/fixtures/compiler/hooks-with-prefix.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