DEV Community

Discussion on: State Management Battle in React 2021: Hooks, Redux, and Recoil

Collapse
 
ivan_jrmc profile image
Ivan Jeremic

Recoil is the only one that does the job without boilerplate, if you still use redux I'm very sad for you.

Collapse
 
amaben2020 profile image
amaben2020

yeah, but most codebases already have redux, to maintain such codebases, you must have a solid grasp of redux. Don't you think that this makes redux very important till date?

Collapse
 
ivan_jrmc profile image
Ivan Jeremic

Important in existing ones sure, if you are forced to use it and not allowed to change it you have no choice. But if you have the choice there are alternatives.

Collapse
 
aralroca profile image
Aral Roca

No the only one πŸ˜› this one is much simple github.com/aralroca/fragstore and you can consume parts of the store avoiding inecessary rerenders ☺️

Collapse
 
avkonst profile image
Andrey

You probably have not seen Hookstate. It is even better on this aspect.

Collapse
 
yusr profile image
yusr.dhm

i'm agree with you, hookstate is easy and faster

Collapse
 
ivan_jrmc profile image
Ivan Jeremic

Thanks for the suggestion I will look into hookstate I think I will like it.

Collapse
 
mrvaa5eiym profile image
mrVAa5eiym

redux have very little boilerplate these days too

Collapse
 
ivan_jrmc profile image
Ivan Jeremic • Edited

Still too much

Collapse
 
imamabdulazis profile image
Imam Abdul Azis

what about redux toolkit?

Collapse
 
ivan_jrmc profile image
Ivan Jeremic

I would not use it personally, recoil + react-query is what I use currently

Thread Thread
 
imamabdulazis profile image
Imam Abdul Azis

Can I know the reason?
or just explain why you not using redux toolkit.

Thread Thread
 
ivan_jrmc profile image
Ivan Jeremic

They simply hacked rtk together only because they saw that people started using other libraries, I don't like this, also other solutions work better and are cleaner.

Thread Thread
 
imamabdulazis profile image
Imam Abdul Azis

understood, make sense for me brother.