mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-26 01:58:06 +02:00
Add Create React App example with TypeScript and basic usage
This commit is contained in:
parent
d20ab76242
commit
00c3339520
15 changed files with 377 additions and 0 deletions
12
examples/create-react-app/src/app.tsx
Normal file
12
examples/create-react-app/src/app.tsx
Normal file
|
@ -0,0 +1,12 @@
|
|||
import React from 'react';
|
||||
|
||||
import Pdf from './pdf';
|
||||
|
||||
export default function App () {
|
||||
return (
|
||||
<main>
|
||||
<h1>PDF.js rendering example with Create React App</h1>
|
||||
<Pdf />
|
||||
</main>
|
||||
)
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue