I have recently read "Clean Architecture" by Bob Martin. Even though the principles he explains there apply to all languages it is harder for me to grasp those concepts around JavaScript (functional languages in general).
I have a React application where I have applied React Redux but now when I have read the book I wonder if I am not too dependent on Redux and how can I make myself more independent so that I can easily substitute Redux with any other approach (React Hooks for instance) any time I want.
Bob Martin is emphasizing on the fact that we need to be careful about architecture boundaries but I am really not sure where I can put Redux in that case?
Do I do business logic in Redux? If yes, does not this break the Clean Architecture recommendation to keep business logic independent? If I put my logic in Redux I become too dependent on it?
I have my pure view components only to display data on them them some viewModel components that handle view logic but from there I am not sure what is happening next.
Redux should be part of the middleware.