I'd use dom-augmentor module instead
WebReflection opened this issue · comments
The augmentor is general purpose, but it has useEffect
with empty Array that requires manual reset, or the cleaned up effects won't ever happen.
When it comes to deal with the DOM, you'd expect React like component dismount unmount life cycles for effects, and that's provided by dom_augmentor module, which is just augmentor but with a proper useEffect
for the DOM world.
Actually, never mind, I've seen you have implemented your own.
Yup, wanted to save some bytes on that.