Hi everyone, I need your advice, I'm new with next, I'm switching from nuxt to next and I'm searching the easiest way to create a store with next/react, i used vuex with nuxt and it was easy but in react i saw a lot of state management (contextAPI, zustand, redux, recoil), what is the easiest to implement in my website ? (I dont need to manage a lot of data, just need to switch and keep some data and need to use and change everywhere in the app), thanks !
#Global state management
6 messages · Page 1 of 1 (latest)
zustand is easier.
I finally choose contextAPI hook, i found an easy way to implement it but I will chexk about zustand
as you may know, contextapi rerenders entire children so if the values change frequently, performance would drop. otherwise, like dark/light mode settings, it should be okay.
I would also recommend Zustand. It's quite a nice library, and it's very easy to use. I personally haven't used the contextAPI hook, however my experience with Zustand has been good.