xxxxxxxxxx
import React from ‘react’;
const PDFViewer = () => {
return (
<div>
<iframe src=”path_to_pdf_file.pdf” width=”100%” height=”500px” />
</div>
);
};
export default PDFViewer;
xxxxxxxxxx
<object data="http://africau.edu/images/default/sample.pdf" type="application/pdf" width="100%" height="100%">
<p>Alternative text - include a link <a href="http://africau.edu/images/default/sample.pdf">to the PDF!</a></p>
</object>