zarm
Version:
基于 React 的移动端UI库
10 lines (9 loc) • 385 B
TypeScript
import * as React from 'react';
import type { Root } from 'react-dom/client';
declare const MARK = "__zarm_root__";
declare type ContainerType = (Element | DocumentFragment) & {
[MARK]?: Root;
};
export declare function render(node: React.ReactElement, container: ContainerType): void;
export declare function unmount(container: ContainerType): boolean | Promise<void>;
export {};