A React helper hook for storing latest value in ref object (updated in useEffect's callback).
It's react's useEffect hook, except using deep comparison on the inputs, not reference equality
A React hook that uses useEffect() on the server and useLayoutEffect() in the browser
A React hook that updates useRef().current with the most recent value each invocation