When I tried to use the @react-pdf/renderer
package (version 3.0.1
) with a React 18 app, two problems arose. In this article, I'll describe those problems and tell you how I solved them.
Update: Here's a video demonstration of the problems and solution described in this article: https://youtu.be/YZP5r7Uy_bU