Re:Making SetInterval Declarative with React Hooks
by underwater on Monday February 04, 2019 @03:28AM
(#19074773)
Classes aren't really that great in React. You typically need do a lot of juggling to co-ordinate lifecycle hooks. Trying to do something like register, update and unregister a listener feels very verbose with classes because you don't truely control the instance lifecycle – React does.
[ Parent
| on HN ]
There are no comments on this comment yet.