fgerschau / comments

1 stars 0 forks source link

react-hooks-settimeout/ #23

Open utterances-bot opened 1 year ago

utterances-bot commented 1 year ago

Using setTimeout in React components (including hooks) | Felix Gerschau

Using timeouts in React isn't as straightforward as you may think. In this article, you'll learn how to avoid mistakes when using them in React.

https://felixgerschau.com/react-hooks-settimeout/

tsaomaxwell commented 1 year ago

This is awesome, I was working on time specific handling for duplicate events, and was getting stuck on state and timeout. Not only did this article fix the problem for me, it also made my solution more elegant and taught me a lot about how react works in a very understandable way. Thanks!

fgerschau commented 1 year ago

@tsaomaxwell thanks for the nice words. I'm glad that you found it useful!