title: Create a PDF document after click a button in React
body: <p>I want to generate a PDF document that is generated after user click &quot;Create PDF document&quot; for my current React page.  The document I want to generate will have the following:</p>
  <ol>
  <li>Some, but not all component in the current page</li>
  <li>Selectable</li>
  <li>Only download the document when clicking and nowhere else</li>
  </ol>
  <p>I have spent 3 hours researching on this trivial task, but somehow all library I have looking up for only allow their pre-defined component, or not selectable, or both. I know that this task is very trivial, but how exactly I could do that?</p>