I have a react page with bunch of stuff including charts from apexcharts etc., and in the page that i want to print, i only want to print a few components from the page.
To achieve that, i have to open up a new window (window.open()), with those components in it, and then print that window right? (window.print())
If that's the case, because react is a spa, the styling doesn't transfer (i've just tried). With createPortal, i can send my components and like i said, styling is not transferred. I followed here;
https://stackoverflow.com/a/64391469
Is there a way to transfer the stylings as well, and i think i need to transfer javascript stuff too?
How is this usually done? Do i need to create a new route straight up and render what i need to render? and the user prints that?