DEV Community

Nuno Pereira
Nuno Pereira

Posted on • Edited on

4 1

Redux Hooks ! Opinions !?

Opinions about Redux Hooks (usReducer, useSelector) ?

Do you use it or still using the "old" connect way ?

Top comments (2)

Collapse
 
nitinreddy3 profile image
Nitin Reddy

I have used useSelector recently. In my opinion the new way of using redux hooks has improved code readability. You don't have to use maptostate and other connector methods to map your states and props. These hooks are easy to use as well.

Collapse
 
dooskybant profile image
Bant

Hi! I don't have any work experience, but using both ways in previous projects. I'd recommend using the hooks way, the code has been reduced considerably which was one of the biggest complains when choosing Redux over Context. If I would use Redux in another project I'll go with the Hooks

AWS GenAI LIVE image

How is generative AI increasing efficiency?

Join AWS GenAI LIVE! to find out how gen AI is reshaping productivity, streamlining processes, and driving innovation.

Learn more

Instrument, monitor, fix: a hands-on debugging session

Join Lazar for a hands-on session where you’ll build it, break it, debug it, and fix it. You’ll set up Sentry, track errors, use Session Replay and Tracing, and leverage some good ol’ AI to find and fix issues fast.

Tune in to the full event

DEV is partnering to bring live events to the community. Join us or dismiss this billboard if you're not interested. ❤️