Sha256: 8662016f7d7d4f7a95b810aedd0ab4800ad0736d92836ba583bd565578d94f8d

Contents?: true

Size: 754 Bytes

Versions: 168

Compression:

Stored size: 754 Bytes

Contents

/* @flow */

import { createElement, cloneElement, Component, type Node } from 'react';

declare var h: typeof createElement;

declare function render(vnode: Node, parent: Element, toReplace?: Element): Element;

export { h, createElement, cloneElement, Component, render };
export default { h, createElement, cloneElement, Component, render };

declare type VNode<P> = {
    nodeName: string | Function,
    children: Array<VNode<P> | string>,
    key?: string | number | void,
    attributes: P,
};

declare export function rerender(): void;
declare export var options: {
    syncComponentUpdates?: boolean,
    vnode?: (vnode: VNode<any>) => void,
    debounceRendering?: (rerender: () => void) => void,
    event?: (event: Event) => Event | void,
};

Version data entries

168 entries across 84 versions & 1 rubygems

Version Path
govuk_publishing_components-17.20.0 node_modules/preact/dist/preact.js.flow
govuk_publishing_components-17.20.0 node_modules/preact/src/preact.js.flow
govuk_publishing_components-17.19.1 node_modules/preact/src/preact.js.flow
govuk_publishing_components-17.19.1 node_modules/preact/dist/preact.js.flow
govuk_publishing_components-17.19.0 node_modules/preact/src/preact.js.flow
govuk_publishing_components-17.19.0 node_modules/preact/dist/preact.js.flow
govuk_publishing_components-17.18.0 node_modules/preact/src/preact.js.flow
govuk_publishing_components-17.18.0 node_modules/preact/dist/preact.js.flow
govuk_publishing_components-17.17.0 node_modules/preact/dist/preact.js.flow
govuk_publishing_components-17.17.0 node_modules/preact/src/preact.js.flow
govuk_publishing_components-17.16.0 node_modules/preact/dist/preact.js.flow
govuk_publishing_components-17.16.0 node_modules/preact/src/preact.js.flow
govuk_publishing_components-17.15.0 node_modules/preact/src/preact.js.flow
govuk_publishing_components-17.15.0 node_modules/preact/dist/preact.js.flow
govuk_publishing_components-17.14.0 node_modules/preact/dist/preact.js.flow
govuk_publishing_components-17.14.0 node_modules/preact/src/preact.js.flow
govuk_publishing_components-17.13.0 node_modules/preact/dist/preact.js.flow
govuk_publishing_components-17.13.0 node_modules/preact/src/preact.js.flow
govuk_publishing_components-17.12.2 node_modules/preact/dist/preact.js.flow
govuk_publishing_components-17.12.2 node_modules/preact/src/preact.js.flow