MAPSTATETOPROPS & MAPDISPATCHTOPROPS: The Bad Boys of React-Redux

Written by urchmaney | Published 2020/02/13
Tech Story Tags: programming | react | redux | react-redux | react-top-story | programming-top-story | mapstatetoprops-react-redux | mapdispatchtoprops-react-redux

TLDR 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.via the TL;DR App

no story

Published by HackerNoon on 2020/02/13