Re:Making SetInterval Declarative with React Hooks
by frosted-flakes on Wednesday February 06, 2019 @01:48AM
(#19093226)
With React, it's one and the same thing. React has a single event listener at the top level, then creates synthetic events that it passes down the tree. You can still do native event listeners, but there's no reason to, except for listening for events on `window`, etc.
[ Parent
| on HN ]
There are no comments on this comment yet.