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!
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 trial
Ceil-Ian MaralitFront End Web Development Techdegree Graduate 19,434 Points
What is wrong with my code?
Hi! Good day. I followed what Guil said in this video but I'm getting an error. I would appreciate a fresh eyes looking at my code. Maybe you will see what's the problem. Thank you in advance!
Henry Lay14,739 Points
I can't seem to get into the workspace to provide my input onto the problem if possible are you able to take a screenshot of the question or syntax if possible?
Gabbie Metheny33,778 Points
In the event handler inside your
Player component, you're trying to call
this.removePlayer, but it actually needs to be
props.removePlayer, since the
App component passed the function down through props. If you're still getting an error after that change, let me know what the error is and I'd be happy to take another look!
stjarnanFront End Web Development Techdegree Graduate 56,488 Points
Hi Ceil-Ian Maralit,
I noticed you tagged me and took a quick look, I believe the answer Gabbie Metheny came up with just as you tagged me might solve your problem. (I can see that you tagged me 20 seconds before her reply came in! :D )
Let us know how it works!