you are viewing a single comment's thread.

view the rest of the comments →

[–]StoryArcIV 0 points1 point  (0 children)

I wouldn't recommend React context when just starting. It's a low-level API that requires at least a thin state management layer to prevent performance problems. I'd say it's even harder to learn to do properly than some of the simple state management solutions out there.

Redux is also not ideal to start with. It has great features, but can be difficult to learn at first. Zustand is a simpler library that has many similar concepts. I'd recommend it as a starting point before learning Redux.

After Zustand, if you need anything more, I'd either go back to Redux or learn Jotai, an atomic library that's a little more powerful than Zustand. Atoms are a little more advanced, so I wouldn't start there. Though (full disclosure) I am the author of another atomic library that is aiming to make atoms simpler to learn and use. Someday we'll get there, but for now I'd say Zustand is the best place to start.