mirror of
https://github.com/th-ch/youtube-music.git
synced 2026-01-12 11:01:45 +00:00
feat: migrate from raw HTML to JSX (TSX / SolidJS) (#3583)
Co-authored-by: Su-Yong <simssy2205@gmail.com>
This commit is contained in:
6
src/utils/custom-element.ts
Normal file
6
src/utils/custom-element.ts
Normal file
@ -0,0 +1,6 @@
|
||||
import { customElement, type ComponentType } from 'solid-element';
|
||||
|
||||
export const anonymousCustomElement = <T extends object>(
|
||||
ComponentType: ComponentType<T>,
|
||||
): CustomElementConstructor =>
|
||||
customElement(`ytmd-${crypto.randomUUID()}`, ComponentType);
|
||||
Reference in New Issue
Block a user