Convert react components to pdf

I have to convert react components ( each component returning html content) into pdf of back to back pages. (It’s more like each component in separate page)

I found that html2pdf is available as an add-on but couldn’t get clear way of integrating with react.

Any suggestions or help on the above!