News for hackers. Stuff that matters.
Re:Two custom React hooks by ngoel36 on Friday December 17, 2021 @12:19PM (#29595157)
Re:Two custom React hooks by acemarke on Friday December 17, 2021 @07:44PM (#29600214)
I'm biased, but I would strongly recommend using our official Redux Toolkit package rather than Easy-Peasy:

https://redux-toolkit.js.org

Re:Two custom React hooks by ngoel36 on Monday December 20, 2021 @10:36AM (#29626051)
Curious, why? (I admittedly know very little here)
Re:Two custom React hooks by acemarke on Sunday December 26, 2021 @12:54AM (#29690103)
Belated answer, but several reasons:

- I created Redux Toolkit :)

- It's also "official", ie, from the actual Redux team (myself, Lenz Weber, Tim Dorr)

- RTK simplifies common Redux patterns, but tries to stay "typically Redux". It doesn't hide the fact that you're using Redux. Libraries like Easy-Peasy and Rematch add additional levels of abstraction, to the point that it doesn't even look like Redux any more. I can understand why that might be appealing to some folks, but I think it's too much abstraction.