Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
Unknown Quality Score

No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.

0 Endorsements
~82 People Reached
Favorite Forums
Favorite Tags

1 Posted Topic

Member Avatar for phenny19

How can I open/close a nested list using React, so that when you click on the parent li the children are hidden? Here's what I used to create the list. list.js class List extends React.Component { render(){ return ( <ul> {this.props.list.map(function(item){ return ( <li> <ListItem key={item.id} item={item} /> <List list={item.children} …

0
82

The End.