NestedReveal.js — react Source File
Architecture documentation for NestedReveal.js, a javascript file in the react codebase. 1 imports, 1 dependents.
Entity Profile
Dependency Diagram
graph LR 0b935850_668f_6cc3_49c5_79c9d8654554["NestedReveal.js"] ac587885_e294_a1e9_b13f_5e7b920fdb42["react"] 0b935850_668f_6cc3_49c5_79c9d8654554 --> ac587885_e294_a1e9_b13f_5e7b920fdb42 ef975ced_d6a7_b295_dbfc_38e701d92f78["Page.js"] ef975ced_d6a7_b295_dbfc_38e701d92f78 --> 0b935850_668f_6cc3_49c5_79c9d8654554 style 0b935850_668f_6cc3_49c5_79c9d8654554 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
import React, {Suspense, use} from 'react';
async function sleep(ms) {
return new Promise(resolve => setTimeout(resolve, ms));
}
function Use({useable}) {
use(useable);
return null;
}
let delay1;
let delay2;
export default function NestedReveal({}) {
if (!delay1) {
delay1 = sleep(100);
// Needs to happen before the throttled reveal of delay 1
delay2 = sleep(200);
}
return (
<div className="swipe-recognizer">
Shell
<Suspense fallback="Loading level 1">
<div>Level 1</div>
<Use useable={delay1} />
<Suspense fallback="Loading level 2">
<div>Level 2</div>
<Use useable={delay2} />
</Suspense>
</Suspense>
</div>
);
}
Domain
Subdomains
Functions
Dependencies
- react
Imported By
Source
Frequently Asked Questions
What does NestedReveal.js do?
NestedReveal.js is a source file in the react codebase, written in javascript. It belongs to the BabelCompiler domain, Optimization subdomain.
What functions are defined in NestedReveal.js?
NestedReveal.js defines 3 function(s): NestedReveal, Use, sleep.
What does NestedReveal.js depend on?
NestedReveal.js imports 1 module(s): react.
What files import NestedReveal.js?
NestedReveal.js is imported by 1 file(s): Page.js.
Where is NestedReveal.js in the architecture?
NestedReveal.js is located at fixtures/view-transition/src/components/NestedReveal.js (domain: BabelCompiler, subdomain: Optimization, directory: fixtures/view-transition/src/components).
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free