UNPKG

react-pure-props

Version:

compare only the props. If the state does not change, do not re-ender.

5 lines (4 loc) 178 B
import { Component } from "react"; export default class PureProps<T = {}, U = {}> extends Component<T, U> { shouldComponentUpdate(prevProps: any, prevState: any): boolean; }