MAPSTATETOPROPS & MAPDISPATCHTOPROPS: The Bad Boys of React-Redux
Too Long; Didn't Read
Redux keeps state for your entire application with the help of its store. Components can request and perform actions to the Redux store state. This helps unify the way the store can be changed. Components have state scoped for themselves and inner components and their state gets refreshed when reloaded. This will be a problem when you need to store states for the whole application. The Redux store store is a function that takes a parameter and returns an object, this parameter is the redux store state. It injects the state into the function under the hood. It returns a object which will hold all the state you need in your component props.