React lifecycle as components
npm install react-lifecycle-componentsSupports: React DOM and React Native.
```
yarn install react-lifecycle-components
When you want to perform a side-effect on mount, like sending a tracking event 🚀, starting an animation ✨, or something like that.
`javascript`
Basically the same as Mount but calls on when the component will unmount 😄
`javascript`
When you want to be notified when a prop was changed. 👌🏻 Works with both non-objects (simple equality check) or with objects (shallow equality check).
`javascript
interface AnObject {
anObject: string;
}
``