DEV Community

OpenSource for Webcrumbs

Posted on Edited on

Quick poll: do you prefer React Context (🩷) or Redux (šŸ¦„)? Use likes to vote

I’ll start.

Top comments (7)

Collapse
 
webjose profile image
JosĆ© Pablo RamĆ­rez Vargas •

I need a "Drop ReactJS and use Svelte" option, if you please.

Collapse
 
pixel-wraith profile image
Jake Lundberg • • Edited

+1

Svelte is awesome, and so are you friend!

Collapse
 
pengeszikra profile image
Peter Vivo • • Edited

My vote is type safe useReducer with or without useContext, that why I created react-state-factory npm module which is solve this problem lightweight way, even you can use redux-saga without full redux need to use in your system.

react-state-factory npm module

Collapse
 
atinypixel profile image
Aziz Kaukawala •

After encountering zustand, I’ve opted to abandon React Context.

React Context, burdened with an overabundance of boilerplate code and further complicated by the addition of useReducer, seemed to be a potential pitfall!

While the performance of zustand in complex scenarios remains to be seen, my initial impressions are quite positive.

Above all, the introduction of React Query has been a game-changer! It has effectively reduced state management tasks by a significant 50%-60%!

Happy Coding

Collapse
 
barrymichaeldoyle profile image
Barry Michael Doyle •

Zustand

Collapse
 
giannifed profile image
Gianni Feduzi •

Zustand or Easy Peasy for me.

Collapse
 
zakbay profile image
Bay •

Context !