repro-for-loop-in-try.js — react Source File
Architecture documentation for repro-for-loop-in-try.js, a javascript file in the react codebase.
Entity Profile
Relationship Graph
Source Code
function Foo({items}) {
const results = [];
try {
for (let i = 0; i < items.length; i++) {
results.push(items[i]);
}
} catch (e) {
return <span>Error</span>;
}
return <span>{results.join(', ')}</span>;
}
export const FIXTURE_ENTRYPOINT = {
fn: Foo,
params: [{items: ['a', 'b', 'c']}],
sequentialRenders: [
{items: ['a', 'b', 'c']},
{items: ['a', 'b', 'c']},
{items: ['x', 'y']},
{items: []},
{items: ['single']},
],
};
Domain
Subdomains
Functions
Source
Frequently Asked Questions
What does repro-for-loop-in-try.js do?
repro-for-loop-in-try.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 repro-for-loop-in-try.js?
repro-for-loop-in-try.js defines 1 function(s): Foo.
Where is repro-for-loop-in-try.js in the architecture?
repro-for-loop-in-try.js is located at compiler/packages/babel-plugin-react-compiler/src/__tests__/fixtures/compiler/repro-for-loop-in-try.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