Quantcast
Channel: Understanding React-Redux and mapStateToProps() - Stack Overflow
Viewing all articles
Browse latest Browse all 11

Answer by ArunValaven for Understanding React-Redux and mapStateToProps()

$
0
0

React-Reduxconnect is used to update store for every actions.

import { connect } from 'react-redux';const AppContainer = connect(    mapStateToProps,  mapDispatchToProps)(App);export default AppContainer;

It's very simply and clearly explained in this blog.

You can clone github project or copy paste the code from that blog to understand the Redux connect.


Viewing all articles
Browse latest Browse all 11

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>