I have the following code. I would like my log to fire if the value changes.
const usePrevious = (value) => { const ref = useRef(); useEffect(() =>