React redux not showing the map content
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty{ height:90px;width:728px;box-sizing:border-box;
}
React Redux not displaying Map content data This code below works by posting form data to database.
My problem is that its not displaying the map content in the return method as per code below and its not showing any error
message in the console. Infact the map content is empty.
<ul>
<h1>Jmarkatti </h1>
{users.items4 && users.items4.map((user, index) =>
<option key={user.uid} value='{ user.uid }'>Hey jmarkatti { user.filename} { user.uid }</option>
)}
</ul>
Some Post here at Stackoverflow suggest ensuring that all the one doe not miss the returning statement
list.map not being displayed in React Component
here is the main code
import React, { Component } from 'react';
import { Link } from 'react-router-dom';
import { connect } from 'react-redux';
import { uActions } from '../_actions';
class FileRegister extends React.Component {
constructor(props) {
super(props);
this.state = {
user: {
firstName: '',
},
submitted: false
};
this.handleChange = this.handleChange.bind(this);
this.handleSubmit = this.handleSubmit.bind(this);
}
handleChange(event) {
const { name, value } = event.target;
const { user } = this.state;
this.setState({
user: {
...user,
[name]: value,
},
});
}
handleSubmit(event) {
event.preventDefault();
this.setState({ submitted: true });
const { user_upload } = this.state;
const { dispatch } = this.props;
if (user.firstName) {
dispatch(userActions.register_upload(user));
}
}
render() {
const { user, users } = this.props;
const { registering } = this.props;
const { user, submitted } = this.state;
return (
<div className="col-md-6 col-md-offset-3">
<ul>
<h1>Jmarkatti </h1>
{users.items4 && users.items4.map((user, index) =>
<option key={user.uid} value='{ user.uid }' >Hey jmarkatti {user.filename} {user.uid}</option>
)}
</ul>
<h2>Form submission</h2>
<form name="form" onSubmit={this.handleSubmit}>
<div className={'form-group' + (submitted && !user.firstName ? ' has-error' : '')}>
<label htmlFor="firstName">First Name</label>
<input type="text" className="form-control" name="firstName" value={user.firstName} onChange={this.handleChange} />
{submitted && !user.firstName &&
<div className="help-block">First Name is required</div>
}
</div>
<div className="form-group">
<button className="btn btn-primary">Register</button>
<Link to="/login" className="btn btn-link">Cancel</Link>
</div>
</form>
</div>
);
}
}
Updates
function mapStateToProps(state) {
const { registering } = state.users;
const { users} = state;
const { user} = state;
return {
registering,
user,
users
};
}
const connectedFileRegister = connect(mapStateToProps)(FileRegister);
export { connectedFileRegister as FileRegister };
Here is the reducer.js
import { uConstants } from '../_constants';
export function users(state = {}, action) {
switch (action.type) {
case userConstants.REGISTER_REQUEST:
return { registering: true };
case userConstants.REGISTER_SUCCESS:
return { items4: action.users };
//return{};
case userConstants.REGISTER_FAILURE:
return {};
default:
return state
}
}
reactjs redux
add a comment |
React Redux not displaying Map content data This code below works by posting form data to database.
My problem is that its not displaying the map content in the return method as per code below and its not showing any error
message in the console. Infact the map content is empty.
<ul>
<h1>Jmarkatti </h1>
{users.items4 && users.items4.map((user, index) =>
<option key={user.uid} value='{ user.uid }'>Hey jmarkatti { user.filename} { user.uid }</option>
)}
</ul>
Some Post here at Stackoverflow suggest ensuring that all the one doe not miss the returning statement
list.map not being displayed in React Component
here is the main code
import React, { Component } from 'react';
import { Link } from 'react-router-dom';
import { connect } from 'react-redux';
import { uActions } from '../_actions';
class FileRegister extends React.Component {
constructor(props) {
super(props);
this.state = {
user: {
firstName: '',
},
submitted: false
};
this.handleChange = this.handleChange.bind(this);
this.handleSubmit = this.handleSubmit.bind(this);
}
handleChange(event) {
const { name, value } = event.target;
const { user } = this.state;
this.setState({
user: {
...user,
[name]: value,
},
});
}
handleSubmit(event) {
event.preventDefault();
this.setState({ submitted: true });
const { user_upload } = this.state;
const { dispatch } = this.props;
if (user.firstName) {
dispatch(userActions.register_upload(user));
}
}
render() {
const { user, users } = this.props;
const { registering } = this.props;
const { user, submitted } = this.state;
return (
<div className="col-md-6 col-md-offset-3">
<ul>
<h1>Jmarkatti </h1>
{users.items4 && users.items4.map((user, index) =>
<option key={user.uid} value='{ user.uid }' >Hey jmarkatti {user.filename} {user.uid}</option>
)}
</ul>
<h2>Form submission</h2>
<form name="form" onSubmit={this.handleSubmit}>
<div className={'form-group' + (submitted && !user.firstName ? ' has-error' : '')}>
<label htmlFor="firstName">First Name</label>
<input type="text" className="form-control" name="firstName" value={user.firstName} onChange={this.handleChange} />
{submitted && !user.firstName &&
<div className="help-block">First Name is required</div>
}
</div>
<div className="form-group">
<button className="btn btn-primary">Register</button>
<Link to="/login" className="btn btn-link">Cancel</Link>
</div>
</form>
</div>
);
}
}
Updates
function mapStateToProps(state) {
const { registering } = state.users;
const { users} = state;
const { user} = state;
return {
registering,
user,
users
};
}
const connectedFileRegister = connect(mapStateToProps)(FileRegister);
export { connectedFileRegister as FileRegister };
Here is the reducer.js
import { uConstants } from '../_constants';
export function users(state = {}, action) {
switch (action.type) {
case userConstants.REGISTER_REQUEST:
return { registering: true };
case userConstants.REGISTER_SUCCESS:
return { items4: action.users };
//return{};
case userConstants.REGISTER_FAILURE:
return {};
default:
return state
}
}
reactjs redux
it would seem thatusers.items4
evaluates tofalse
– Eric Hasselbring
Nov 16 '18 at 22:01
can you add code as well where you are connecting your component with redux connect ?
– Pranay Tripathi
Nov 16 '18 at 22:02
@Pranay, I have added the connecting components. Please can you look into it in the update sections
– jmarkatti
Nov 17 '18 at 6:49
Why do you doconst { users} = state; const { user} = state;
. Just do:const { users, user } = state
;
– FrankerZ
Nov 17 '18 at 6:50
@Frankez I have done that yet Map content is not showed. and there is no error message in the console
– jmarkatti
Nov 17 '18 at 6:55
add a comment |
React Redux not displaying Map content data This code below works by posting form data to database.
My problem is that its not displaying the map content in the return method as per code below and its not showing any error
message in the console. Infact the map content is empty.
<ul>
<h1>Jmarkatti </h1>
{users.items4 && users.items4.map((user, index) =>
<option key={user.uid} value='{ user.uid }'>Hey jmarkatti { user.filename} { user.uid }</option>
)}
</ul>
Some Post here at Stackoverflow suggest ensuring that all the one doe not miss the returning statement
list.map not being displayed in React Component
here is the main code
import React, { Component } from 'react';
import { Link } from 'react-router-dom';
import { connect } from 'react-redux';
import { uActions } from '../_actions';
class FileRegister extends React.Component {
constructor(props) {
super(props);
this.state = {
user: {
firstName: '',
},
submitted: false
};
this.handleChange = this.handleChange.bind(this);
this.handleSubmit = this.handleSubmit.bind(this);
}
handleChange(event) {
const { name, value } = event.target;
const { user } = this.state;
this.setState({
user: {
...user,
[name]: value,
},
});
}
handleSubmit(event) {
event.preventDefault();
this.setState({ submitted: true });
const { user_upload } = this.state;
const { dispatch } = this.props;
if (user.firstName) {
dispatch(userActions.register_upload(user));
}
}
render() {
const { user, users } = this.props;
const { registering } = this.props;
const { user, submitted } = this.state;
return (
<div className="col-md-6 col-md-offset-3">
<ul>
<h1>Jmarkatti </h1>
{users.items4 && users.items4.map((user, index) =>
<option key={user.uid} value='{ user.uid }' >Hey jmarkatti {user.filename} {user.uid}</option>
)}
</ul>
<h2>Form submission</h2>
<form name="form" onSubmit={this.handleSubmit}>
<div className={'form-group' + (submitted && !user.firstName ? ' has-error' : '')}>
<label htmlFor="firstName">First Name</label>
<input type="text" className="form-control" name="firstName" value={user.firstName} onChange={this.handleChange} />
{submitted && !user.firstName &&
<div className="help-block">First Name is required</div>
}
</div>
<div className="form-group">
<button className="btn btn-primary">Register</button>
<Link to="/login" className="btn btn-link">Cancel</Link>
</div>
</form>
</div>
);
}
}
Updates
function mapStateToProps(state) {
const { registering } = state.users;
const { users} = state;
const { user} = state;
return {
registering,
user,
users
};
}
const connectedFileRegister = connect(mapStateToProps)(FileRegister);
export { connectedFileRegister as FileRegister };
Here is the reducer.js
import { uConstants } from '../_constants';
export function users(state = {}, action) {
switch (action.type) {
case userConstants.REGISTER_REQUEST:
return { registering: true };
case userConstants.REGISTER_SUCCESS:
return { items4: action.users };
//return{};
case userConstants.REGISTER_FAILURE:
return {};
default:
return state
}
}
reactjs redux
React Redux not displaying Map content data This code below works by posting form data to database.
My problem is that its not displaying the map content in the return method as per code below and its not showing any error
message in the console. Infact the map content is empty.
<ul>
<h1>Jmarkatti </h1>
{users.items4 && users.items4.map((user, index) =>
<option key={user.uid} value='{ user.uid }'>Hey jmarkatti { user.filename} { user.uid }</option>
)}
</ul>
Some Post here at Stackoverflow suggest ensuring that all the one doe not miss the returning statement
list.map not being displayed in React Component
here is the main code
import React, { Component } from 'react';
import { Link } from 'react-router-dom';
import { connect } from 'react-redux';
import { uActions } from '../_actions';
class FileRegister extends React.Component {
constructor(props) {
super(props);
this.state = {
user: {
firstName: '',
},
submitted: false
};
this.handleChange = this.handleChange.bind(this);
this.handleSubmit = this.handleSubmit.bind(this);
}
handleChange(event) {
const { name, value } = event.target;
const { user } = this.state;
this.setState({
user: {
...user,
[name]: value,
},
});
}
handleSubmit(event) {
event.preventDefault();
this.setState({ submitted: true });
const { user_upload } = this.state;
const { dispatch } = this.props;
if (user.firstName) {
dispatch(userActions.register_upload(user));
}
}
render() {
const { user, users } = this.props;
const { registering } = this.props;
const { user, submitted } = this.state;
return (
<div className="col-md-6 col-md-offset-3">
<ul>
<h1>Jmarkatti </h1>
{users.items4 && users.items4.map((user, index) =>
<option key={user.uid} value='{ user.uid }' >Hey jmarkatti {user.filename} {user.uid}</option>
)}
</ul>
<h2>Form submission</h2>
<form name="form" onSubmit={this.handleSubmit}>
<div className={'form-group' + (submitted && !user.firstName ? ' has-error' : '')}>
<label htmlFor="firstName">First Name</label>
<input type="text" className="form-control" name="firstName" value={user.firstName} onChange={this.handleChange} />
{submitted && !user.firstName &&
<div className="help-block">First Name is required</div>
}
</div>
<div className="form-group">
<button className="btn btn-primary">Register</button>
<Link to="/login" className="btn btn-link">Cancel</Link>
</div>
</form>
</div>
);
}
}
Updates
function mapStateToProps(state) {
const { registering } = state.users;
const { users} = state;
const { user} = state;
return {
registering,
user,
users
};
}
const connectedFileRegister = connect(mapStateToProps)(FileRegister);
export { connectedFileRegister as FileRegister };
Here is the reducer.js
import { uConstants } from '../_constants';
export function users(state = {}, action) {
switch (action.type) {
case userConstants.REGISTER_REQUEST:
return { registering: true };
case userConstants.REGISTER_SUCCESS:
return { items4: action.users };
//return{};
case userConstants.REGISTER_FAILURE:
return {};
default:
return state
}
}
reactjs redux
reactjs redux
edited Nov 17 '18 at 6:48
jmarkatti
asked Nov 16 '18 at 21:43
jmarkattijmarkatti
19419
19419
it would seem thatusers.items4
evaluates tofalse
– Eric Hasselbring
Nov 16 '18 at 22:01
can you add code as well where you are connecting your component with redux connect ?
– Pranay Tripathi
Nov 16 '18 at 22:02
@Pranay, I have added the connecting components. Please can you look into it in the update sections
– jmarkatti
Nov 17 '18 at 6:49
Why do you doconst { users} = state; const { user} = state;
. Just do:const { users, user } = state
;
– FrankerZ
Nov 17 '18 at 6:50
@Frankez I have done that yet Map content is not showed. and there is no error message in the console
– jmarkatti
Nov 17 '18 at 6:55
add a comment |
it would seem thatusers.items4
evaluates tofalse
– Eric Hasselbring
Nov 16 '18 at 22:01
can you add code as well where you are connecting your component with redux connect ?
– Pranay Tripathi
Nov 16 '18 at 22:02
@Pranay, I have added the connecting components. Please can you look into it in the update sections
– jmarkatti
Nov 17 '18 at 6:49
Why do you doconst { users} = state; const { user} = state;
. Just do:const { users, user } = state
;
– FrankerZ
Nov 17 '18 at 6:50
@Frankez I have done that yet Map content is not showed. and there is no error message in the console
– jmarkatti
Nov 17 '18 at 6:55
it would seem that
users.items4
evaluates to false
– Eric Hasselbring
Nov 16 '18 at 22:01
it would seem that
users.items4
evaluates to false
– Eric Hasselbring
Nov 16 '18 at 22:01
can you add code as well where you are connecting your component with redux connect ?
– Pranay Tripathi
Nov 16 '18 at 22:02
can you add code as well where you are connecting your component with redux connect ?
– Pranay Tripathi
Nov 16 '18 at 22:02
@Pranay, I have added the connecting components. Please can you look into it in the update sections
– jmarkatti
Nov 17 '18 at 6:49
@Pranay, I have added the connecting components. Please can you look into it in the update sections
– jmarkatti
Nov 17 '18 at 6:49
Why do you do
const { users} = state; const { user} = state;
. Just do: const { users, user } = state
;– FrankerZ
Nov 17 '18 at 6:50
Why do you do
const { users} = state; const { user} = state;
. Just do: const { users, user } = state
;– FrankerZ
Nov 17 '18 at 6:50
@Frankez I have done that yet Map content is not showed. and there is no error message in the console
– jmarkatti
Nov 17 '18 at 6:55
@Frankez I have done that yet Map content is not showed. and there is no error message in the console
– jmarkatti
Nov 17 '18 at 6:55
add a comment |
2 Answers
2
active
oldest
votes
The issue has been resloved in the dispatch() method as there was a mistake. Instead of userAction.users(), I wrote userAction.register_upload().
In a nutshell, it should be
dispatch(userActions.users(user));
not
dispatch(userActions.register_upload(user));
If you look at second line of code at reducer.js posted above, you will discover export functions was set to users as per the code below
export function users(state = {}, action) {
Map content is working now. Between Thanks everyone
add a comment |
The way you iterate users.items4
will not return <option>
items as you expected. Change them to
{users.items4 && users.items4.map((user, index) => (
<option key={user.uid} value={user.uid} >Hey jmarkatti {user.filename} {user.uid}</option>
))}
or
{users.items4 && users.items4.map((user, index) => {
return <option key={user.uid} value={user.uid} >Hey jmarkatti {user.filename} {user.uid}</option>
})}
Yes it does. If you don't include curly brackets at the start of an arrow function, anything encapsulated is returned.
– FrankerZ
Nov 17 '18 at 6:49
You are right @FrankerZ. Should've tested before posting.
– Rico Chen
Nov 17 '18 at 14:38
add a comment |
Your Answer
StackExchange.ifUsing("editor", function () {
StackExchange.using("externalEditor", function () {
StackExchange.using("snippets", function () {
StackExchange.snippets.init();
});
});
}, "code-snippets");
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "1"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53345832%2freact-redux-not-showing-the-map-content%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
2 Answers
2
active
oldest
votes
2 Answers
2
active
oldest
votes
active
oldest
votes
active
oldest
votes
The issue has been resloved in the dispatch() method as there was a mistake. Instead of userAction.users(), I wrote userAction.register_upload().
In a nutshell, it should be
dispatch(userActions.users(user));
not
dispatch(userActions.register_upload(user));
If you look at second line of code at reducer.js posted above, you will discover export functions was set to users as per the code below
export function users(state = {}, action) {
Map content is working now. Between Thanks everyone
add a comment |
The issue has been resloved in the dispatch() method as there was a mistake. Instead of userAction.users(), I wrote userAction.register_upload().
In a nutshell, it should be
dispatch(userActions.users(user));
not
dispatch(userActions.register_upload(user));
If you look at second line of code at reducer.js posted above, you will discover export functions was set to users as per the code below
export function users(state = {}, action) {
Map content is working now. Between Thanks everyone
add a comment |
The issue has been resloved in the dispatch() method as there was a mistake. Instead of userAction.users(), I wrote userAction.register_upload().
In a nutshell, it should be
dispatch(userActions.users(user));
not
dispatch(userActions.register_upload(user));
If you look at second line of code at reducer.js posted above, you will discover export functions was set to users as per the code below
export function users(state = {}, action) {
Map content is working now. Between Thanks everyone
The issue has been resloved in the dispatch() method as there was a mistake. Instead of userAction.users(), I wrote userAction.register_upload().
In a nutshell, it should be
dispatch(userActions.users(user));
not
dispatch(userActions.register_upload(user));
If you look at second line of code at reducer.js posted above, you will discover export functions was set to users as per the code below
export function users(state = {}, action) {
Map content is working now. Between Thanks everyone
answered Nov 17 '18 at 10:07
jmarkattijmarkatti
19419
19419
add a comment |
add a comment |
The way you iterate users.items4
will not return <option>
items as you expected. Change them to
{users.items4 && users.items4.map((user, index) => (
<option key={user.uid} value={user.uid} >Hey jmarkatti {user.filename} {user.uid}</option>
))}
or
{users.items4 && users.items4.map((user, index) => {
return <option key={user.uid} value={user.uid} >Hey jmarkatti {user.filename} {user.uid}</option>
})}
Yes it does. If you don't include curly brackets at the start of an arrow function, anything encapsulated is returned.
– FrankerZ
Nov 17 '18 at 6:49
You are right @FrankerZ. Should've tested before posting.
– Rico Chen
Nov 17 '18 at 14:38
add a comment |
The way you iterate users.items4
will not return <option>
items as you expected. Change them to
{users.items4 && users.items4.map((user, index) => (
<option key={user.uid} value={user.uid} >Hey jmarkatti {user.filename} {user.uid}</option>
))}
or
{users.items4 && users.items4.map((user, index) => {
return <option key={user.uid} value={user.uid} >Hey jmarkatti {user.filename} {user.uid}</option>
})}
Yes it does. If you don't include curly brackets at the start of an arrow function, anything encapsulated is returned.
– FrankerZ
Nov 17 '18 at 6:49
You are right @FrankerZ. Should've tested before posting.
– Rico Chen
Nov 17 '18 at 14:38
add a comment |
The way you iterate users.items4
will not return <option>
items as you expected. Change them to
{users.items4 && users.items4.map((user, index) => (
<option key={user.uid} value={user.uid} >Hey jmarkatti {user.filename} {user.uid}</option>
))}
or
{users.items4 && users.items4.map((user, index) => {
return <option key={user.uid} value={user.uid} >Hey jmarkatti {user.filename} {user.uid}</option>
})}
The way you iterate users.items4
will not return <option>
items as you expected. Change them to
{users.items4 && users.items4.map((user, index) => (
<option key={user.uid} value={user.uid} >Hey jmarkatti {user.filename} {user.uid}</option>
))}
or
{users.items4 && users.items4.map((user, index) => {
return <option key={user.uid} value={user.uid} >Hey jmarkatti {user.filename} {user.uid}</option>
})}
answered Nov 17 '18 at 5:02
Rico ChenRico Chen
769511
769511
Yes it does. If you don't include curly brackets at the start of an arrow function, anything encapsulated is returned.
– FrankerZ
Nov 17 '18 at 6:49
You are right @FrankerZ. Should've tested before posting.
– Rico Chen
Nov 17 '18 at 14:38
add a comment |
Yes it does. If you don't include curly brackets at the start of an arrow function, anything encapsulated is returned.
– FrankerZ
Nov 17 '18 at 6:49
You are right @FrankerZ. Should've tested before posting.
– Rico Chen
Nov 17 '18 at 14:38
Yes it does. If you don't include curly brackets at the start of an arrow function, anything encapsulated is returned.
– FrankerZ
Nov 17 '18 at 6:49
Yes it does. If you don't include curly brackets at the start of an arrow function, anything encapsulated is returned.
– FrankerZ
Nov 17 '18 at 6:49
You are right @FrankerZ. Should've tested before posting.
– Rico Chen
Nov 17 '18 at 14:38
You are right @FrankerZ. Should've tested before posting.
– Rico Chen
Nov 17 '18 at 14:38
add a comment |
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53345832%2freact-redux-not-showing-the-map-content%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
it would seem that
users.items4
evaluates tofalse
– Eric Hasselbring
Nov 16 '18 at 22:01
can you add code as well where you are connecting your component with redux connect ?
– Pranay Tripathi
Nov 16 '18 at 22:02
@Pranay, I have added the connecting components. Please can you look into it in the update sections
– jmarkatti
Nov 17 '18 at 6:49
Why do you do
const { users} = state; const { user} = state;
. Just do:const { users, user } = state
;– FrankerZ
Nov 17 '18 at 6:50
@Frankez I have done that yet Map content is not showed. and there is no error message in the console
– jmarkatti
Nov 17 '18 at 6:55