title: Problems using html-to-image in a React application
body: <p>I am trying to use html-to-image to create a downloadable image of a specific html card. In its documentation it specifies to use</p>
  
  <pre><code>var node = document.getElementById('my-node');
  htmlToImage.toPng(node)...
  </code></pre>
  
  <p>But this works on real DOM and not in react. I tried using refs but its unfruitful. The card and the download button is in different branches in Component Hierarchy. </p>