DEV Community

Discussion on: Generating Pdf documents in React Using React-pdf

Collapse
 
bkrahul profile image
Rahul • Edited

Thanks for the detailed explanantion, Is there any way i can use input tag as custom components? because when i try i get this error

Error: Invalid element of type input passed to PDF renderer

Collapse
 
airtonix profile image
Zenobius Jiricek

you missed this part:

React-Pdf uses React-Primitives spec to create custom components that you can use to create and structure your PDF documents.

github.com/lelandrichardson/react-...

If you read that repo, you'll discover that it's not rendering with the default set of html components that react normally understands.