I have my own component that uses andt I want to select some object in a table and pass it to my component and download it as a pdf.
I tried wrapping my component but nothing happened just my text was gone
const DocumentForPrint = ({ children }) => {
return (
<Document>
<Page size="A4">
{ children }
</Page>
</Document>
)
}