Mgood job, but I think this will cause an error with SSR because window object is not accessible on the server side codeComment·Article·Jul 21, 2022·React cleaner use of setTimeout