When working with setTimeout we generally don't have to worry about cleaning up our timeouts. However, introducing it into React can create some nasty edge-cases. This often happens because we want to manipulate data after x time. The component might...

Markdown supported · ⌘↵ to post
mamged
jsian
good job, but I think this will cause an error with SSR because window object is not accessible on the server side code