import { render } from 'preact'const frag = document.createDocumentFragment()
render(<CustomComponent />, frag)const container = document.querySelector('#container') as HTMLElement
container.prepend(frag)
深耕网站建设、视觉设计与SEO优化的一线实战洞察。
import { render } from 'preact'const frag = document.createDocumentFragment()
render(<CustomComponent />, frag)const container = document.querySelector('#container') as HTMLElement
container.prepend(frag)