3 ms·
Plus Redux is horrible for performance, slows things down and overcomplicates everything.
by mosdl 8mo ago
Plus Redux is horrible for performance, slows things down and overcomplicates everything.
- Rohansi 8mo agoI never understood why state management is overcomplicated in React. For some reason most people use something like Redux which has a very unintuitive API. There are other state management packages available that are so much easier to use and understand, like MobX. https://github.com/mobxjs/mobx https://github.com/mobxjs/mobx
- littlecranky67 8mo agoTo shine a light on the mystery, before React had (a) hooks and (b) a stable context API and (c) tanstack-query/react-query or GraphQL - state handling WAS a mess. Thats when redux/mobx etc. made more sense. Try to build something with a pre-2019 version of react and you will understand the need.
- slopinthebag 8mo agoRedux is an implementation of the elm architecture (Tea) which is used for UI state in a lot of languages and frameworks. JS/TS is just not a very ergonomic language for it so it becomes painful quickly. https://guide.elm-lang.org/architecture/ https://guide.elm-lang.org/architecture/
- epolanski 8mo agoIs this 2019?
- deleted 7mo ago[deleted]
- deleted 7mo ago[deleted]
- deleted 7mo ago[deleted]
- deleted 7mo ago[deleted]