zent
Version:
一套前端设计语言和基于React的实现
18 lines (17 loc) • 499 B
TypeScript
import { Component } from 'react';
export interface ILazyMountProps {
mount?: boolean;
}
export interface ILazyMountState {
mounted: boolean;
}
export default class LazyMount extends Component<ILazyMountProps, ILazyMountState> {
static defaultProps: {
mount: boolean;
};
constructor(props: ILazyMountProps);
render(): import("react").ReactNode;
static getDerivedStateFromProps(props: ILazyMountProps, state: ILazyMountState): {
mounted: boolean;
};
}