r/reactjs • u/acemarke • Feb 02 '18
Beginner's Thread / Easy Questions (February 2018)
We had some good comments and discussion in last month's thread. If you didn't get a response there, please ask again here!
Soo... Got questions about React or anything else in its ecosystem? Stuck making progress on your app? Ask away! We’re a friendly bunch. No question is too simple.
The Reactiflux chat channels on Discord are another great place to ask for help as well.
22
Upvotes
View all comments
Show parent comment
1
u/[deleted] Feb 02 '18
Your child component should have one responsibility: rendering a single item. It shouldn't even know that it's part of a list of items.
So you want to .map() in the parent: