title: How to print React component on click of a button?
body: <p>How can I print only one component on click of a button. </p>
  
  <p>I know this solution: </p>
  
  <pre><code>window.frames["print_frame"].window.focus();
  window.frames["print_frame"].window.print();
  $('.print_frame').remove();
  </code></pre>
  
  <p>But React doesn't want to work with a frame.</p>
  
  <p>Any solutions? Thank you.</p>