title: react-to-print showing blank page in typescript
body: <p>I am using react-to-print with Typescript I have implemented it but when I try to print it shows a blank page.</p>
  <p>here is the code :</p>
  <pre><code>  const componentRef = useRef(null);
    const handlePrint = useReactToPrint({
      content: () =&gt; componentRef.current,
    });
  </code></pre>
  <p>the component I want to print:</p>
  <pre><code>&lt;div ref={componentRef}&gt;
    &lt;CompnaySettingsReceipt recepitType={selectedReceipt} /&gt;
  &lt;/div&gt;
  </code></pre>