📅 发布时间:2026/6/20 12:36:27 import { render } from 'preact'const frag = document.createDocumentFragment() render(<CustomComponent />, frag)const container = document.querySelector('#container') as HTMLElement container.prepend(frag)