Check out example codes for "html2pdf page break option". It will help you in understanding the concepts better.

Code Example 1

html2pdf().set({
    pagebreak: {avoid: 'tr'}
});

Learn ReactJs, React Native from akashmittal.com