The case for Redux
Why Redux? In no particular order
- Redux has DevTools
- Redux has react-native-debugger for React Native
- Redux has been around since 2015, has been stable, and is battle tested for heavy state
- Redux is probably used in all legacy applications (i.e. anything before 2018..) and you’ll probably have to maintain that code
- Redux is not just React. It works in other places too, like Angular..
Why not?
- Very verbose
- With React Suspense and
useReducer
you can get the middleware functionality like making API calls and the actions anddispatch()
inside React by default - You can get DevTools for React’s built-in state in a (hacky workaround) way