I have a print button that works great in react-to-print
const handlePrint = useReactToPrint ({
content: () => printRef.current,
});
<div ref = {printRef}> this will print </div>
My question is how can I print the entire page and not just a single component?