The Document component is used to create a layout for document pages. It provides a structured way to set the size, orientation, and margin of the document.
import Document from './Document';const MyDocument = () => ( <Document size="A4" orientation="portrait" margin="0.39in"> <h1>My Document Content</h1> <p>This is the content of my document.</p> </Document>);