mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2025-07-25 20:00:11 +02:00

Remove imports of react-bootstrap components from marketing pages GitOrigin-RevId: 12a3446cc42f1438a52f49a893e53a02a1b5be4f
15 lines
401 B
TypeScript
15 lines
401 B
TypeScript
import './marketing'
|
|
import './features/header-footer-react'
|
|
import { createRoot } from 'react-dom/client'
|
|
import { ReactNode } from 'react'
|
|
|
|
export function renderInReactLayout(
|
|
parentId: string,
|
|
createChildren: () => ReactNode
|
|
) {
|
|
const parentElement = document.getElementById(parentId)
|
|
if (parentElement) {
|
|
const root = createRoot(parentElement)
|
|
root.render(createChildren())
|
|
}
|
|
}
|