- insted of NextJS dynamic import we are using vanilla dynamic import for PDF React component which should be rendered on function call
- uses NextJS dynamic import for component (DynamicPDFExport.tsx) so that the react-pdf is not imported on server and component not rendered on server
in both examples page will crash but only on v1 page will there be an error in the console