UNPKG

preact-pure-props

Version:

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

5 lines (3 loc) 167 B
import PureProps from "react-pure-props"; import { Component } from "preact"; export default PureProps as any as new <T = {}, U = {}>(props: any) => Component<T, U>;