I\'m using React with TypeScript and I\'ve created stateless function. I\'ve removed useless code from the example for readability.
interface CenterBoxProps exte
Simplest for me is to define (partial) defaults in the defaultProps directly:
export default class TSError extends React.Component<ITSErrorProps, {}> { private static defaultProps: Partial<ITSErrorProps> = { fullPage: true, controlClick: true, doubleClick: true }; ... }