Render React code to PDF
This post is deleted!
Hi, quick short hints
- phantomjs doesn't support the latest JS, maybe your code throws there an error. You can find it out by running the same html with debug. If this is true, you can try the chrome-pdf recipe
- it can happen that your code is async and phantomjs prints before the rendering finishes. Try to set the printDelay and see if it changes
- react may not be a good fit for printing static html/pdf, but I understand that there are cases when it may have sense