mirror of
https://github.com/cupcakearmy/formhero.git
synced 2024-12-23 00:26:23 +00:00
9 lines
257 B
TypeScript
9 lines
257 B
TypeScript
|
import React from 'react'
|
||
|
import { createRoot } from 'react-dom/client'
|
||
|
|
||
|
export function mount(Node: React.FC) {
|
||
|
const section = window.document.createElement('section')
|
||
|
window.document.body.appendChild(section)
|
||
|
createRoot(section).render(<Node />)
|
||
|
}
|