What I want to achieve is to generate and save PDF file onClick(), not rendering anything in DOM.
Content should have React components HTML and CSS.
I found @progress/kendo-react-pdf package: https://www.telerik.com/kendo-react-ui/components/pdfprocessing/
My example with bug: https://stackblitz.com/edit/react-taumpw?file=index.js
Kendo doesn't support rendering/saving PDF outside DOM: https://github.com/telerik/kendo-react/issues/307#issuecomment-521232445