Jan is an open source alternative to ChatGPT that runs 100% offline on your computer.
import { useEffect, useLayoutEffect } from 'react' export const useIsomorphicLayoutEffect = typeof window !== 'undefined' ? useLayoutEffect : useEffect