handlePlace() — react Function Reference
Architecture documentation for the handlePlace() function in InlineJsxTransform.ts from the react codebase.
Entity Profile
Dependency Diagram
graph TD 8f7865fe_3bad_8373_38ce_11967c957733["handlePlace()"] 5e75c578_acd8_79e6_2aae_0bb0b2c9ce77["InlineJsxTransform.ts"] 8f7865fe_3bad_8373_38ce_11967c957733 -->|defined in| 5e75c578_acd8_79e6_2aae_0bb0b2c9ce77 876d58c8_bfce_a9d8_22c0_b40cc7e22553["inlineJsxTransform()"] 876d58c8_bfce_a9d8_22c0_b40cc7e22553 -->|calls| 8f7865fe_3bad_8373_38ce_11967c957733 style 8f7865fe_3bad_8373_38ce_11967c957733 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
compiler/packages/babel-plugin-react-compiler/src/Optimization/InlineJsxTransform.ts lines 744–760
function handlePlace(
place: Place,
blockId: BlockId,
inlinedJsxDeclarations: InlinedJsxDeclarationMap,
): Place {
const inlinedJsxDeclaration = inlinedJsxDeclarations.get(
place.identifier.declarationId,
);
if (
inlinedJsxDeclaration == null ||
inlinedJsxDeclaration.blockIdsToIgnore.has(blockId)
) {
return place;
}
return {...place, identifier: inlinedJsxDeclaration.identifier};
}
Domain
Subdomains
Called By
Source
Frequently Asked Questions
What does handlePlace() do?
handlePlace() is a function in the react codebase, defined in compiler/packages/babel-plugin-react-compiler/src/Optimization/InlineJsxTransform.ts.
Where is handlePlace() defined?
handlePlace() is defined in compiler/packages/babel-plugin-react-compiler/src/Optimization/InlineJsxTransform.ts at line 744.
What calls handlePlace()?
handlePlace() is called by 1 function(s): inlineJsxTransform.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free