Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trialRyli Davis
Full Stack JavaScript Techdegree Graduate 15,136 PointsI'm having trouble understanding what you mean when you say "The handleRemovePlayer function looks at the previous...
I'm having trouble understanding what you mean when you say "The handleRemovePlayer function looks at the previous players and filters out the players that match the ID to the input. I'm having trouble also understanding what this line of code means and how it actually removes the player
( p => p.id !== id )
1 Answer
Laura Coronel
Treehouse TeacherHey Ryli Davis, This video is mostly to show you how to update the React Basics project files to use React Hooks. I recommend checking out React Basics Remove Items from State video where Guil creates the handleRemovePlayer
function. Guil walks you through the function and explains each line of code.
I hope this helps 😃