Interface DittoProviderProps

interface DittoProviderProps {
    children?: RenderFunction;
    initOptions?: InitOptions;
    render?: RenderFunction;
    setup: (() => Ditto | Ditto[] | Promise<Ditto | Ditto[]>);
}

Properties

children?: RenderFunction
initOptions?: InitOptions
setup: (() => Ditto | Ditto[] | Promise<Ditto | Ditto[]>)

This function is called when the DittoProvider initialized the Ditto module. Use this function to bootstrap the Ditto instance to the provider.

Returns a single Ditto instance or an array of instances.

Type declaration

    • (): Ditto | Ditto[] | Promise<Ditto | Ditto[]>
    • Returns Ditto | Ditto[] | Promise<Ditto | Ditto[]>