react-with-dynamic
Version:
Improved lazy loading in React with suspense and error boundary
9 lines (8 loc) • 349 B
TypeScript
import React from 'react';
import { ErrorBoundaryProps } from 'react-error-isolation/lib/Props';
import type { Fallback } from 'react-suspenser/lib/types/Fallback';
export interface Props {
readonly errorBoundaryProps: ErrorBoundaryProps;
readonly suspenseFallback: Fallback;
}
export declare const DynamicProvider: React.FC<Props>;