See Demo
npm i use-is-rerender --save
yarn add use-is-rerender
import { useRerender } from 'use-is-rerender'
const Button = () => {
useRerender()
return <button>Click</button>
}
Option | Acceptable Values | Details |
---|---|---|
logProps |
|
Can disable props logging. |
Hook not working when NODE_ENV==='production'
See the LICENSE file for licensing information.