You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

20 lines
438 B

import { useRef } from 'react'
import ReactDOM from 'react-dom';
import ReactEpubViewer from 'modules/reactViewer/ReactViewer'
import { ViewerRef } from 'types'
const App = () => {
const EPUB_URL = "/react-epub-viewer/files/Alices Adventures in Wonderland.epub";
const ref = useRef<ViewerRef>(null);
return (
<ReactEpubViewer
url={EPUB_URL}
ref={ref}
/>
);
}
ReactDOM.render(<App />, document.getElementById('root'));