Jun 10, 2022
That's literally what the non-hooks version of Redux did. mapStateToProps took the redux state and injected it into the View without the View's knowing anything about that state, and mapDispatchToProps injected methods that would dispatch specific actions when called from inside the View (again, without the View's having any knowledge what the function was doing). But apparently _that_ was too hard for the React world to understand, so they've gone completely ga-ga over the monstrosity that is hooks. Makes no sense.