@withjoy/joykit
Version:
UI Component Library for Joy web
17 lines (16 loc) • 568 B
TypeScript
import * as React from 'react';
export declare abstract class AbstractPureComponent<P, S = {}> extends React.PureComponent<P, S> {
constructor(props: P);
componentDidUpdate(): void;
abstract render(): React.ReactNode;
/**
* Used to ensure that a component's props are valid.
* To be **optionally** implemented by a derived component.
*
* Note: this runtime check is only performed in development mode.
*
* @param props
*/
protected validateProps(props: P): void;
private tryToValidateProps;
}