mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-07 20:31:06 -05:00
19 lines
447 B
JavaScript
19 lines
447 B
JavaScript
|
import ReactDOM from 'react-dom'
|
||
|
import PdfPreview from './pdf-preview'
|
||
|
import { ContextRoot } from '../../../shared/context/root-context'
|
||
|
|
||
|
function PdfPreviewDetachedRoot() {
|
||
|
return (
|
||
|
<ContextRoot>
|
||
|
<PdfPreview />
|
||
|
</ContextRoot>
|
||
|
)
|
||
|
}
|
||
|
|
||
|
export default PdfPreviewDetachedRoot // for testing
|
||
|
|
||
|
const element = document.getElementById('pdf-preview-detached-root')
|
||
|
if (element) {
|
||
|
ReactDOM.render(<PdfPreviewDetachedRoot />, element)
|
||
|
}
|