Pdf reader for create react app
https://sumn2u.github.io/react-typescript-pdf-reader/
npm i react-typescript-pdf-reader -S
# or
yarn add react-typescript-pdf-reader
import PDFReader from 'react-typescript-pdf-reader'
state = {
pdfUrl: 'https://arxiv.org/pdf/1801.10031v1.pdf' // or use any pdf url
}
render(){
let { pdfUrl } = this.state
<PDFReader pdfUrl={pdfUrl} />
}
## Params
| Name | Type | Default | Description |
| ------------------- | -------- | ---------- | -------------------------------------------------------------------- |
| `pdfUrl` | PDF | `null` | **Required.** The pdf file which you are going to display |
npm run test
or yarn run test
Small note: If editing the README, please conform to the standard-readme specification.
MIT © sumn2u