UNPKG

set-state-compare

Version:

setState for React that compares with the current state and only sets the state if changed.

9 lines 317 B
export default class PureComponent { /** * @param {Record<string, any>} nextProps * @param {Record<string, any>} nextState * @returns {boolean} */ shouldComponentUpdate(nextProps: Record<string, any>, nextState: Record<string, any>): boolean; } //# sourceMappingURL=pure-component.d.ts.map