It uses pdf js under the hood. the ui is very nice and responsive in terms of it loads fast when navigating pages. might use in an upcoming project.
https://github.com/react-pdf-viewer/react-pdf-viewer/blob/ma...
https://github.com/react-pdf-viewer/react-pdf-viewer/blob/ma...
Not sure if this was the goal.
I’d guess it makes sense for PDF.js since you likely won’t need it outside of this library in your own project and it comes with multiple builds, of which they might choose one specific.
Then install speeds are faster and node_modules are smaller.