import {useState, useEffect} from 'react' export default function useIsClientSide() { const [clientSide, setClientSide] = useState(false); useEffect(() => { setClientSide(true) }, []) return clientSide; }