MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/reactjs/comments/illwv0/deleted_by_user/g47b6qm/
r/reactjs • u/[deleted]
[deleted] — view deleted post
255 comments sorted by
View all comments
Show parent comment
0
[deleted] — view deleted comment
1 u/doesnotdeliver Sep 06 '20 Thanks for the fast response, I still a little confused in this scenario though.When I work with the first element of the array, the stringify method is still providing useful information:{JSON.stringify(this.state.items[0])}gives the JSON string in my above question, but calling{this.state.items[0]["ceo"]}Is giving the undefined error still.What is it that is undefined? 0 u/[deleted] Sep 06 '20 [deleted] — view deleted comment 1 u/doesnotdeliver Sep 06 '20 I'm not quite sure how to set that up in codepen (I am very new), I'll take a look in the morning and then respond back here if I am able to do that. Thanks again for the attention.
1
Thanks for the fast response, I still a little confused in this scenario though.
When I work with the first element of the array, the stringify method is still providing useful information:
{JSON.stringify(this.state.items[0])}
gives the JSON string in my above question, but calling
{this.state.items[0]["ceo"]}
Is giving the undefined error still.
What is it that is undefined?
0 u/[deleted] Sep 06 '20 [deleted] — view deleted comment 1 u/doesnotdeliver Sep 06 '20 I'm not quite sure how to set that up in codepen (I am very new), I'll take a look in the morning and then respond back here if I am able to do that. Thanks again for the attention.
1 u/doesnotdeliver Sep 06 '20 I'm not quite sure how to set that up in codepen (I am very new), I'll take a look in the morning and then respond back here if I am able to do that. Thanks again for the attention.
I'm not quite sure how to set that up in codepen (I am very new), I'll take a look in the morning and then respond back here if I am able to do that. Thanks again for the attention.
View all comments
Show parent comment
0
u/[deleted] Sep 06 '20
[deleted] — view deleted comment