3 ms·
> No concepts to learn the concept is that events subvert React's own change detection. it's definitely more direct than stacking contexts on top of each other
by pas 3y ago
> No concepts to learn
the concept is that events subvert React's own change detection. it's definitely more direct than stacking contexts on top of each other (... or Redux, shivers)
but probably more maintainable, after all you can just search for the event name.
- pcthrowaway 3y agoYou can integrate events a bit more easily if you turn on the experimental useEffectEvent feature: https://react.dev/learn/separating-events-from-effects#declaring-an-effect-event https://react.dev/learn/separating-events-from-effects#decla...