{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "use-isomorphic-effect",
  "title": "useIsomorphicEffect",
  "description": "A hook to run an effect on the client and server",
  "files": [
    {
      "path": "registry/hooks/use-isomorphic-effect.ts",
      "content": "'use client'\n\nimport * as React from 'react'\n\nexport const useIsomorphicEffect\n  = typeof window !== 'undefined' ? React.useLayoutEffect : React.useEffect\n",
      "type": "registry:hook",
      "target": "hookas/use-isomorphic-effect.ts"
    }
  ],
  "type": "registry:hook"
}