Lazy Loading

The GridPDFExport component enables you to dynamically import the PDF export component only when it is needed.

The code-splitting is achieved over the usage of React.lazy and Suspense. The approach utilizes a separate component that is responsible for exporting the Grid to PDF. That component is loaded only when the user clicks the Export to PDF button.

View Source
Edit In Stackblitz  
Change Theme:

In this article

Not finding the help you need?