Reference

PureComponent

Class-style component contract that skips updates for shallow-equal props and state.

Signature

interface PureComponent

Members

props: P
state?: S
function forceUpdate(callback?: (): void): void
function render(): ReactCompatNode
function setState(partial: Partial<S> | (previousState: Readonly<S>, props: Readonly<P>): S | Partial<S> | null, callback?: (): void): void
function shouldComponentUpdate(nextProps: P, nextState: S): boolean