DEV Community

Discussion on: Next-Gen Way to Connect Redux Store to React Component

Collapse
 
raibtoffoletto profile image
Raí B. Toffoletto

How about redux-toolkit?

Collapse
 
ruppysuppy profile image
Tapajyoti Bose

Yes, a lot of people had been using it lately. I haven't used it yet, so I don't have enough experience to comment on it

Collapse
 
volubleogre664 profile image
volubleogre664

I was here to mention Redux-toolkit
It further simplifies everything and the boilerplate code you write is very small and simple
I actually have a custom hook that does exactly what's in this article but in a much more simple way and it is using redux-toolkit

Collapse
 
ruppysuppy profile image
Tapajyoti Bose

Could you please share it? It would help out the readers a lot

Collapse
 
raibtoffoletto profile image
Raí B. Toffoletto

It also greatly improves async data fetching when you aren't using something like react-query. It provides useSelect and useDispatch as hooks, making things very easy, maybe the async set up could be improved, but after you understand its mechanics it makes sense. Start by their guides on the official website, I guarantee you will like it 😁