If you want to render a pdf file in a react app, there are different options out there. The one that I recently used and would recommend for beginners is react-pdf.
npm install react-pdf
For activating links:
import 'react-pdf/dist/esm/Page/AnnotationLayer.css';
Check out the script example here:
https://github.com/Aishanipach/React-pdf-devto
Print
Share
Comment
Cite
Upload
Translate
APA
Aishanii | Sciencx (2024-03-28T21:26:11+00:00) » Render a pdf in react app. Retrieved from https://www.scien.cx/2022/01/04/render-a-pdf-in-react-app/.
MLA" » Render a pdf in react app." Aishanii | Sciencx - Tuesday January 4, 2022, https://www.scien.cx/2022/01/04/render-a-pdf-in-react-app/
HARVARDAishanii | Sciencx Tuesday January 4, 2022 » Render a pdf in react app., viewed 2024-03-28T21:26:11+00:00,<https://www.scien.cx/2022/01/04/render-a-pdf-in-react-app/>
VANCOUVERAishanii | Sciencx - » Render a pdf in react app. [Internet]. [Accessed 2024-03-28T21:26:11+00:00]. Available from: https://www.scien.cx/2022/01/04/render-a-pdf-in-react-app/
CHICAGO" » Render a pdf in react app." Aishanii | Sciencx - Accessed 2024-03-28T21:26:11+00:00. https://www.scien.cx/2022/01/04/render-a-pdf-in-react-app/
IEEE" » Render a pdf in react app." Aishanii | Sciencx [Online]. Available: https://www.scien.cx/2022/01/04/render-a-pdf-in-react-app/. [Accessed: 2024-03-28T21:26:11+00:00]
rf:citation » Render a pdf in react app | Aishanii | Sciencx | https://www.scien.cx/2022/01/04/render-a-pdf-in-react-app/ | 2024-03-28T21:26:11+00:00
https://github.com/addpipe/simple-recorderjs-demo