import html2canvas from 'html2canvas';
npm install html2canvas
html2canvas(document.body).then(function(canvas) { document.body.appendChild(canvas); });