A React hook that provides cross-platform compatibility for useLayoutEffect, automatically falling back to useEffect on the server-side to prevent hydration mismatches while maintaining synchronous DOM updates on the client.
pnpm dlx shadcn@latest add "https://mksingh.dev/r/use-isomorphic-layout-effect.json"