Welcome to the Treehouse Community
The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.
Ceil-Ian MaralitFront End Web Development Techdegree Graduate 19,421 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,709 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!