Example() — react Function Reference
Architecture documentation for the Example() function in error.bug-invariant-expected-consistent-destructuring.js from the react codebase.
Entity Profile
Dependency Diagram
graph TD 44c485a7_b862_87db_ff92_9bf365f01431["Example()"] ebe22710_a456_05d3_5e92_d1a5ef2c0355["error.bug-invariant-expected-consistent-destructuring.js"] 44c485a7_b862_87db_ff92_9bf365f01431 -->|defined in| ebe22710_a456_05d3_5e92_d1a5ef2c0355 style 44c485a7_b862_87db_ff92_9bf365f01431 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
compiler/packages/babel-plugin-react-compiler/src/__tests__/fixtures/compiler/error.bug-invariant-expected-consistent-destructuring.js lines 4–16
export const Example = ({data}) => {
let a;
let b;
if (data) {
({a, b} = data);
}
const foo = useFoo(a);
const bar = useMemo(() => formatB(b), [b]);
return <Baz foo={foo} bar={bar} />;
};
Domain
Subdomains
Source
Frequently Asked Questions
What does Example() do?
Example() is a function in the react codebase, defined in compiler/packages/babel-plugin-react-compiler/src/__tests__/fixtures/compiler/error.bug-invariant-expected-consistent-destructuring.js.
Where is Example() defined?
Example() is defined in compiler/packages/babel-plugin-react-compiler/src/__tests__/fixtures/compiler/error.bug-invariant-expected-consistent-destructuring.js at line 4.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free