Amy Blankenship
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.

Amy Blankenship
Amy Blankenship

Written by Amy Blankenship

Full Stack developer at fintech company. I mainly write about React, Javascript, Typescript, and testing.

No responses yet