UNPKG

croact

Version:

Simple React for compatible use

16 lines (15 loc) 843 B
import { IObject } from "@daybrush/utils"; import { Component } from "./base/Component"; import { Provider } from "./base/Provider"; export declare function fillKeys(keys: any[]): string[]; export declare function flat(arr: any[]): any[]; export declare function fillProps(props: IObject<any>, defaultProps?: IObject<any>): IObject<any>; export declare function isDiff(a: object, b: object): boolean; export declare function getAttributes(props: IObject<any>): { [name: string]: any; }; export declare function splitProps(props: IObject<any>): Record<string, any>[]; export declare function findContainerNode(provider?: Provider | null): Node | null; export declare function removeNode(node: Node): void; export declare function executeHooks(hooks: Function[]): void; export declare function renderFunctionComponent(this: Component): any;