drawPiece beta
Function of @v12-engine/client/kit
ts
export declare function drawPiece<Props extends object>(element: HTMLElement, own: Own<Props> | undefined, given: Props, stock: (props: Props) => JSX.Element): () => void;Puts a piece into an element, from code that builds the page itself (a scene's or a panel's mount): the game's own element (mount), its component, or the client's own component when the game said neither. All are given the same. Returns what takes it away