0% completed
Follow the instructions below to complete the challenge:
Create a Heavy Component:
Implement a HeavyComponent
that displays a large amount of text or images.
Use React.lazy for Lazy Loading:
Instead of importing HeavyComponent
directly, use React.lazy() to load it dynamically.
Wrap it with Suspense:
Use <Suspense>
with a fallback (e.g., "Loading...") to show a placeholder while the component loads.
Add a Button to Load the Component:
Render the HeavyComponent
only when a user clicks a "Load Component" button.
.....
.....
.....