3 ms·
The comments are a bit disconcerting. "Redux is trash"? It's a finite state machine. At its simplest level that's all it is. Now, I get that requiring it in eve
by nobleach 7y ago
The comments are a bit disconcerting. "Redux is trash"? It's a finite state machine. At its simplest level that's all it is. Now, I get that requiring it in every single React app makes little sense, but the library itself is just too simple to be considered "trash".
- viklove 7y agoIt's trash because people are dumb and it encourages them to store all of their state globally.
- nobleach 7y agoI'm pretty sure that is discouraged by the docs and the author. Just because a library doesn't pop up a bouncing anthropomorphic paperclip and specifically ASK you, "are you sure you want to store this state globally?", doesn't mean the library is bad. Just think of the brain-dead things the C language allows you to do with malloc! Yet that's not at all C's fault.
- viklove 7y agoIt might not be Redux's fault, but the result of Redux being a popular library is that many projects have all of their state stored globally. This would not be the case if Redux didn't exist. Call me consequentialist, but I think Redux has to share some of the blame.