Remix.run Logo
mosdl 7 hours ago

Plus Redux is horrible for performance, slows things down and overcomplicates everything.

Rohansi 5 hours ago | parent [-]

I 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

slopinthebag 21 minutes ago | parent | next [-]

Redux 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/

littlecranky67 3 hours ago | parent | prev | next [-]

To 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.

epolanski 4 minutes ago | parent | prev [-]

Is this 2019?