An enhancer that makes component re-render only when its props change. Uses fast-shallow-equal
to do shallow prop comparison.
import {pure} from 'libreact/lib/pure';
const PureComp = pure(Comp);
An enhancer that makes component re-render only when its props change. Uses fast-shallow-equal
to do shallow prop comparison.
import {pure} from 'libreact/lib/pure';
const PureComp = pure(Comp);