Another React Approach...
On your submit button on click set the document height dynamically, then call html2canvas using document.body as the first argument
This will set the html height of public/index.html which html2canvas seems to render from (i.e. not the "root" div).