Re:React has grown beyond its original promise and it's caus...
by usere9364382 on Thursday February 08, 2024 @09:12PM
(#39310610)
If you really want to be upset, take a look to see what it could have been like already with IE8 era technology
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.
Re:React has grown beyond its original promise and it's caus...
by Shorel on Friday February 09, 2024 @01:53AM
(#39312173)
It seems it was released, about one year later.
Re:React has grown beyond its original promise and it's caus...
by usere9364382 on Friday February 09, 2024 @08:00AM
(#39314378)
No, that is a different project. Judging from the github link, that was released in 2016. The reddit link is from 2018. Also see here,
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
Re:React has grown beyond its original promise and it's caus...
by bell_tower on Thursday February 08, 2024 @09:37PM
(#39310765)
Which version of Redux were you using?
Have you heard of Redux Toolkit?
Re:React has grown beyond its original promise and it's caus...
by pas on Friday February 09, 2024 @10:38AM
(#39315846)
> 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.
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...
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?