diegomura / diegomura/react-pdf
Invalid value for prop render on tag
- Dominant language
- TypeScript
- Stars
- 16.8k
- Forks
- 1.3k
- Avg merge
- 5h 6m
- Merged PRs (30d)
- 52
Description
I can't use properties like render or fixed. I am using react-pdf server-side with Node.js. To render it, I am using react-dom/server:
As you can see, I am using renderToString from react-dom/server to render the PDF content because I need to get the HTML string to save it on the server. The document is displayed correctly, but some properties like `render` or `fixed` are not working, and I am getting the following warnings:
- "Invalid value for prop render on tag. Either remove it from the element, or pass a string or number value to keep it in the DOM."
- " is using incorrect casing. Use PascalCase for React components, or lowercase for HTML elements."
- "Received true for a non-boolean attribute fixed.
This is my code:

My code looks fine, and some part of the PDF are showing despite the errors. But I'm stuck because I can't use properties like render or fixed, which means I can't get the currentPage or totalPages to add page numbers and do some other stuff.
- OS: MacOS
- Browser: Chrome
- React-pdf version: v3.3.8
Contributor guide
Assessment
This issue has not been assessed yet.