Received the data in reducer but encountering issues accessing it in the component. Below is the connection code:
const mapStateToProps =state => {
return {
name:state.fbLogin.name
}
}
function mapDispatchToProps(dispatch){
return bindActionCreators(ActionCreators,dispatch);
}
export default connect(mapStateToProps,mapDispatchToProps)(Chat);
Attempting to access the name using this.props.name returns "undefined".