Skip to content

OwnMount beta ​

TypeAlias of @v12-engine/client

ts
export type OwnMount<Props> = (element: HTMLElement, props: Props) => (() => void) | void;

Draws a piece into element with whatever the game likes to draw with, given what the piece is about (the same that a component in its place is given). Returns what takes it away again, or nothing