react-pure-lifecycle
Advanced tools
Changelog
3.0.0
UNSAFE_componentWillMount
getChildContext
UNSAFE_componentWillReceiveProps
UNSAFE_componentWillUpdate
getSnapshotBeforeUpdate
componentDidCatch
require('react-pure-lifecycle').default
Changelog
2.2.0
UNSAFE
lifecycle methods as-of versin 16.3react
to peerDependenciesChangelog
2.1.0
react
16childContextTypes
being assigned an object even if not providedChangelog
2.0.0
1.1.0
was a boolean, to denote if PureComponent
should be used for the HOC; this has been replaced with an object of options (see the README for more details)PureComponent
is now used by default for functional componentsinjectProps
option, which allows opting out of injecting the props
as the first argument to the lifecycle methodschildContextTypes
to functional componentsChangelog
1.1.0
PureComponent
s