repro-macro-property-not-handled.tsx — react Source File
Architecture documentation for repro-macro-property-not-handled.tsx, a tsx file in the react codebase. 2 imports, 0 dependents.
Entity Profile
Dependency Diagram
graph LR 663d38fc_bd68_73d5_edb0_4c7c94701826["repro-macro-property-not-handled.tsx"] 2db15464_200a_540f_8671_b62de113ab09["fbt"] 663d38fc_bd68_73d5_edb0_4c7c94701826 --> 2db15464_200a_540f_8671_b62de113ab09 006eec3d_77a9_4a47_e6c1_a96d7a6c9c05["shared-runtime"] 663d38fc_bd68_73d5_edb0_4c7c94701826 --> 006eec3d_77a9_4a47_e6c1_a96d7a6c9c05 style 663d38fc_bd68_73d5_edb0_4c7c94701826 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
import fbt from 'fbt';
import {useIdentity} from 'shared-runtime';
/**
* MemoizeFbtAndMacroOperandsInSameScope should also track PropertyLoads (e.g. fbt.plural).
* This doesn't seem to be an issue for fbt, but affects other internal macros invoked as
* `importSpecifier.funcName` (see https://fburl.com/code/72icxwmn)
*/
function useFoo({items}: {items: Array<number>}) {
return fbt(
'There ' +
fbt.plural('is', useIdentity([...items]).length, {many: 'are'}) +
' ' +
fbt.param('number of items', items.length) +
' items',
'Error content when there are unsupported locales.',
);
}
export const FIXTURE_ENTRYPOINT = {
fn: useFoo,
params: [{items: [2, 3]}],
};
Domain
Subdomains
Functions
Dependencies
- fbt
- shared-runtime
Source
Frequently Asked Questions
What does repro-macro-property-not-handled.tsx do?
repro-macro-property-not-handled.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 repro-macro-property-not-handled.tsx?
repro-macro-property-not-handled.tsx defines 1 function(s): useFoo.
What does repro-macro-property-not-handled.tsx depend on?
repro-macro-property-not-handled.tsx imports 2 module(s): fbt, shared-runtime.
Where is repro-macro-property-not-handled.tsx in the architecture?
repro-macro-property-not-handled.tsx is located at compiler/packages/babel-plugin-react-compiler/src/__tests__/fixtures/compiler/fbt/repro-macro-property-not-handled.tsx (domain: TestingUtilities, subdomain: Fixtures, directory: compiler/packages/babel-plugin-react-compiler/src/__tests__/fixtures/compiler/fbt).
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free