v1.2.1
A React hook that uses useEffect() on the server and useLayoutEffect() in the browser
Source code on GitHub