Just go main parent component and set the state:
const [isSSR,setIsSSR]=React.useState(false);
React.useEffect(()=>{
  setIsSSR(true);
})
return (
  isSSR && (
    <>
       //your component here
    </>
  )
)
</p>
https://stackoverflow.com/a/74418607/16836455
    
Top comments (0)