Using @react-pdf/renderer v3.0.1 with React 18

preview_player
Показать описание
In this video, I'll show you how I work around two problems in the current version of the @react-pdf/renderer package (v3.0.1), in order to use the package in a React 18 app.

YouTube won't allow me to put a link to the GitHub gist in this video description; so, I'll post it as a video comment instead.
Рекомендации по теме
Комментарии
Автор

Thanks a lot! It really helped me! From Sochi, Russia!

ЗапасЗнаний
Автор

Thanks a lot! It really helped me! From Brazil!

luizzzbento
Автор

Hi, I have a question if you were to encrypt that generated pdf by that specific library, how can it be done? Thank you.

JemMBalangue
Автор

I've done theses steps as well, but I get tons of errors on the rendering, from yoga, zlib, stream... working with 18.2, and can't find any workaround for this

gerardsiles
Автор

Thank you. All are ok in my development server. But, I'm facing a problem in production mode. I used solution' b' in my case.

ProtesterBD
Автор

checkout similar video PDF Extraction in React:

ICURIOUSMIND
Автор

I follow you but, Uncaught TypeError: Cannot read properties of undefined (reading 'call')
at new Queue (index.js:12:16)
at Queue (index.js:9:12)
at usePDF.js:20:25
at commitHookEffectListMount
at commitPassiveMountOnFiber
at
at
at commitPassiveMountEffects
at flushPassiveEffectsImpl
at flushPassiveEffects

But use yarn add

CODE-zeoe