Type Parameters
- T extends ComponentType<P>
- P extends object = any
Parameters
- factory: (() => Promise<{ 
 default: T;
 }>)- (): Promise<{ 
 default: T;
 }>
- Returns Promise<{ 
 default: T;
 }>
 
 
- Optionaloptions: Partial<IParams> = {}
Returns ((props: P) => Element)
A function that returns the wrapped component with suspense and loader.
- (props): Element
- Returns Element
 
Wraps a React component with lazy loading and suspense, displaying a loader while the component is being loaded.