Skip to content

Latest commit

 

History

History
13 lines (8 loc) · 283 Bytes

pure.md

File metadata and controls

13 lines (8 loc) · 283 Bytes

pure()

An enhancer that makes component re-render only when its props change. Uses fast-shallow-equal to do shallow prop comparison.

Usage

import {pure} from 'libreact/lib/pure';

const PureComp = pure(Comp);