No libraries. No higher order components. No concepts to learn. No weird rules. No complex tracing of props and trying to work out why state updates were not triggered, or were triggered.
Redux is one of the most painful software development experiences I have had.
Just the thought of using Redux fills me with dread.
The event code above simply sends a message directly between components - that's nothing at all like Redux.
Can you describe how the above is like Redux?
https://old.reddit.com/r/javascript/comments/9vuwe3/crxcmp_s...
Link in the main comment in that thread. The library unfortunately was never released open source for reasons that are clear in that thread.
and in particular,
http://eyeandtea.com/crxoop/v2/ch01/03
for the documentation of CrxOop. It is just the OOP part of what you see here
Have you heard of Redux Toolkit?
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.