Re:React has grown beyond its original promise and it's caus...
by pcthrowaway on Friday February 09, 2024 @10:51AM
(#39316025)
You can integrate events a bit more easily if you turn on the experimental useEffectEvent feature: https://react.dev/learn/separating-events-from-effects#decla...
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.